/**
 * Twist Type - Core Design System & Stylesheet
 * Inspired by the clean, functional simplicity of AudioToText.com
 * Domain: twisttype.online
 */

:root {
  /* Color Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-hover: #e2e8f0;
  --bg-accent-subtle: #eff6ff;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-active: #1e40af;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Typography Scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container-max: 1160px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Elevation (Subtle, purposeful) */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: var(--font-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.site-main {
  flex: 1 0 auto;
  padding-bottom: var(--space-16);
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-text {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.2;
}

.brand-domain {
  font-size: 0.9em;
  font-weight: 700;
  color: #7c3aed;
  -webkit-text-fill-color: #7c3aed;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-1);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.nav-search-btn:hover {
  background-color: #eff6ff;
  color: var(--accent-primary);
  border-color: #bfdbfe;
}

.nav-search-label {
  display: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--text-main);
}

/* Breadcrumbs (Hidden on frontend; preserved in JSON-LD BreadcrumbList schema in <head> for search engines) */
.breadcrumb-nav {
  display: none;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  color: var(--border-medium);
  user-select: none;
}

.breadcrumb-item.active {
  color: var(--text-main);
  font-weight: var(--font-medium);
}

/* Hero Section */
.hero-section {
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
}

.hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--text-main);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-6);
  line-height: 1.5;
}

/* Live Tool Search Component */
.search-container {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 40;
  display: none;
  list-style: none;
  text-align: left;
}

.search-result-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-fast);
}

.search-result-item:last-child a {
  border-bottom: none;
}

.search-result-item a:hover,
.search-result-item.highlighted a {
  background-color: var(--bg-alt);
  color: var(--accent-primary);
}

.search-result-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.search-result-category {
  font-size: var(--text-xs);
  color: var(--text-muted);
  background-color: var(--bg-alt);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-blue {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-green {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-gray {
  background-color: #f1f5f9;
  color: #475569;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.55rem 1rem;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--text-inverse);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  color: var(--accent-primary);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: var(--text-xs);
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-main);
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Tool Grid & Cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: var(--space-8);
}

.tool-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tool-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.tool-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: #eff6ff;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card-icon svg {
  width: 18px;
  height: 18px;
}

.tool-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.tool-card:hover .tool-card-title {
  color: var(--accent-primary);
}

.tool-card-arrow {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
  margin-left: 8px;
}

.tool-card:hover .tool-card-arrow {
  color: var(--accent-primary);
  transform: translateX(3px);
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-pill {
  padding: 0.4rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
}

/* ========================================================
   TOOL PAGE WORKSPACE (AudioToText.com utilitarian pattern)
   ======================================================== */
.tool-page-header {
  text-align: center;
  max-width: 760px;
  margin: var(--space-8) auto var(--space-6) auto;
}

.tool-page-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
  text-align: center;
  letter-spacing: -0.03em;
}

.tool-page-lead {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
}

.tool-workspace {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.workspace-single {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.input-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.char-counter {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tool-textarea {
  width: 100%;
  min-height: 180px;
  padding: var(--space-4);
  font-family: inherit;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.tool-textarea:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tool-textarea-output {
  background-color: var(--bg-alt);
  color: var(--text-main);
  cursor: text;
}

/* Multi-Style Result Output Cards (Fancy, Small, Cursive, etc.) */
.multi-style-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 520px;
  overflow-y: auto;
  padding-right: var(--space-2);
}

.style-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: all var(--transition-fast);
}

.style-result-card:hover {
  border-color: var(--accent-primary);
  background-color: #fafbfc;
}

.style-result-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  padding-right: var(--space-3);
}

.style-name {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.style-preview {
  font-size: var(--text-lg);
  color: var(--text-main);
  word-break: break-all;
  user-select: all;
}

/* Tool Controls Bar */
.tool-controls-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: var(--space-4) 0;
}

.control-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.control-label {
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.control-slider {
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* Bottom Action Bar */
.workspace-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.workspace-actions-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.workspace-actions-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Toast Alert Feedback */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background-color: var(--text-main);
  color: var(--text-inverse);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background-color: #064e3b;
  color: #a7f3d0;
  border: 1px solid #059669;
}

/* ========================================================
   CONTENT SECTIONS (SEO, Guides, Examples, FAQs)
   ======================================================== */
.content-section {
  margin-bottom: var(--space-12);
}

.article-body {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-light);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.article-body ul,
.article-body ol {
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: var(--space-2);
}

/* Examples Table */
.examples-table-wrapper {
  overflow-x: auto;
  margin: var(--space-4) 0 var(--space-6);
}

.examples-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.examples-table th,
.examples-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.examples-table th {
  background-color: var(--bg-alt);
  font-weight: var(--font-semibold);
  color: var(--text-main);
}

.examples-table td:last-child {
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-main);
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-4) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Feature Benefits Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.feature-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-accent-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.feature-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* How It Works Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

/* Footer Architecture */
.site-footer {
  background-color: #070d1e;
  color: #94a3b8;
  padding: 56px 0 40px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-decoration: none;
  margin-bottom: 8px;
  transition: opacity var(--transition-fast);
}

.footer-brand:hover {
  opacity: 0.88;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: #64748b;
  margin-bottom: 24px;
}

.footer-divider {
  width: 100%;
  max-width: 780px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin: 18px 0 24px 0;
}

.footer-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 16px;
}

.footer-links-row a {
  color: #cbd5e1;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links-row a:hover {
  color: #60a5fa;
}

.footer-legal-row a {
  color: #94a3b8;
  font-size: var(--text-xs);
}

.footer-legal-row a:hover {
  color: #ffffff;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: #64748b;
  margin-top: 20px;
}



/* ========================================================
   AUDIOTOTEXT STYLE SECTIONS (Why Choose, Steps, Use Cases)
   ======================================================== */
.att-section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 44px auto;
}

.att-section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.att-section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto;
}

.att-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.att-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.att-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.att-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.06);
}

.att-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.att-icon-circle svg {
  width: 24px;
  height: 24px;
}

.att-icon-blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.att-icon-purple {
  background-color: #f5f3ff;
  color: #7c3aed;
}

.att-icon-green {
  background-color: #ecfdf5;
  color: #059669;
}

.att-icon-orange {
  background-color: #fff7ed;
  color: #ea580c;
}

.att-icon-pink {
  background-color: #fdf2f8;
  color: #db2777;
}

.att-icon-indigo {
  background-color: #e0e7ff;
  color: #4338ca;
}

.att-step-num {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-top: -8px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.att-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.att-card-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.att-bottom-pill {
  text-align: center;
  margin-top: 42px;
}

.att-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 18px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.att-pill-dots {
  display: inline-flex;
  gap: 3px;
}

.att-pill-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #3b82f6;
}

.att-pill-dots span:nth-child(2) { background-color: #8b5cf6; }
.att-pill-dots span:nth-child(3) { background-color: #ec4899; }

/* AudioToText Style FAQ Card & Tabs */
.att-faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.att-faq-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.faq-tab-btn {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.faq-tab-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.faq-tab-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.att-faq-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  overflow: hidden;
}

.att-faq-item {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color var(--transition-fast);
}

.att-faq-item:last-child {
  border-bottom: none;
}

.att-faq-item .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.att-faq-item .faq-question:hover {
  color: #2563eb;
}

.att-faq-item .faq-icon {
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.att-faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #2563eb;
}

.att-faq-item .faq-answer {
  display: none;
  padding: 0 28px 24px 28px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.65;
}

.att-faq-item.open .faq-answer {
  display: block;
}

/* Popular Tools 4-Column Grid */
.popular-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.popular-explore-action {
  text-align: center;
  margin-top: 36px;
  margin-bottom: 20px;
}

.btn-explore-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  transition: all var(--transition-fast);
}

.btn-explore-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* All Tools Directory 4-Column Grid */
.directory-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .popular-tools-grid,
  .directory-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .popular-tools-grid,
  .directory-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .popular-tools-grid,
  .directory-tools-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Search Modal Popup */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-modal.open {
  visibility: visible;
  opacity: 1;
}

.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.search-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal.open .search-modal-content {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.search-modal-form {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.search-modal-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
}

.search-modal-input::placeholder {
  color: #94a3b8;
}

.search-modal-submit-btn {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-modal-submit-btn:hover {
  background-color: #1d4ed8;
}

.search-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.search-modal-close:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.search-modal-results {
  padding: 16px 20px 20px;
  max-height: 380px;
  overflow-y: auto;
}

.search-modal-quick-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 10px;
}

.search-modal-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-quick-item {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.modal-quick-item:hover {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.modal-live-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-live-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color var(--transition-fast);
}

.modal-live-item a:hover {
  background-color: #f8fafc;
  color: #2563eb;
}

.modal-live-cat {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}

.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #94a3b8;
}

.search-modal-footer kbd {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: inherit;
  color: #64748b;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .search-modal {
    padding: 20px 14px;
  }
  .search-modal-footer {
    display: none;
  }
}

/* ==========================================================================
   Legal, Trust & Contact Pages (AdSense Compliant Design System)
   ========================================================================== */

.legal-header {
  text-align: center;
  max-width: 820px;
  margin: 44px auto 32px;
}

.legal-pill-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 9999px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.legal-subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
  padding: 6px 18px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-weight: 500;
  flex-wrap: wrap;
  max-width: 100%;
}

.legal-meta .meta-sep {
  color: #94a3b8;
  font-size: 11px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 84px;
}

.legal-sidebar {
  position: sticky;
  top: 84px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.legal-toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc-link {
  display: block;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  line-height: 1.4;
  font-weight: 500;
}

.legal-toc-link:hover {
  background-color: #eff6ff;
  color: #2563eb;
  padding-left: 14px;
}

.legal-content-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  line-height: 1.75;
  color: #334155;
}

.legal-content-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 90px;
}

.legal-content-card h2:first-of-type {
  margin-top: 0;
}

.legal-content-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content-card p {
  margin-bottom: 16px;
  font-size: 15px;
}

.legal-content-card ul, .legal-content-card ol {
  margin-bottom: 18px;
  padding-left: 24px;
  font-size: 15px;
}

.legal-content-card li {
  margin-bottom: 8px;
}

.legal-content-card a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content-card a:hover {
  color: #1d4ed8;
}

.legal-callout {
  background-color: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  color: #1e293b;
}

.legal-callout strong {
  color: #2563eb;
}

/* Contact Page 2-Column Grid */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: stretch;
  margin-bottom: 84px;
}

.contact-info-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 38px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 38px 34px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.contact-form-group {
  margin-bottom: 20px;
}

.contact-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-form-textarea {
  min-height: 130px;
  resize: vertical;
}

/* About Us Value Cards */
.about-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 36px;
}

.about-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}

.about-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 12px 0 8px;
}

.about-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}


/* ========================================================
   TOOL PAGE WORKSPACE ENHANCEMENTS (Paste & Badges)
   ======================================================== */
.tool-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 52px;
}

.tool-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
}

.tool-badge-item svg {
  color: #059669;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Word Counter UI Stats Grid */
.wc-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.wc-stat-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.wc-stat-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.wc-stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.1;
  margin-bottom: 4px;
}

.wc-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .wc-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .input-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .input-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }
  .input-actions .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
  }
  .char-counter {
    font-size: 11px;
  }
  .wc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tool-badges-row {
    gap: 12px;
    margin-bottom: 36px;
  }
  .tool-badge-item {
    font-size: 12px;
  }
}

/* ========================================================
   Modern High-End Search Styling (Homepage Hero & /search/)
   ======================================================== */
.hero-search-wrapper,
.search-container {
  max-width: 620px;
  margin: 0 auto 36px;
  position: relative;
  width: 100%;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-form .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.search-form .search-input {
  width: 100%;
  height: 52px;
  padding: 0 115px 0 54px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-form .search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-form .search-submit-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  padding: 0 22px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
  z-index: 2;
}

.search-form .search-submit-btn:hover {
  background-color: #1d4ed8;
}

.search-form .search-submit-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* Live Dropdown for Search */
.search-live-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  max-height: 380px;
  overflow-y: auto;
  z-index: 100;
  padding: 8px;
  list-style: none;
  margin: 0;
  display: none;
  text-align: left;
}

.search-live-item {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.search-live-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  text-decoration: none;
  color: #0f172a;
  border-radius: 8px;
}

.search-live-item a:hover {
  background-color: #f8fafc;
  color: #2563eb;
}

.search-live-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-live-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-live-item-icon svg {
  width: 18px;
  height: 18px;
}

.search-live-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.search-live-item-cat {
  font-size: 11px;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: #f1f5f9;
}

@media (max-width: 600px) {
  .search-form .search-input {
    height: 48px;
    padding: 0 95px 0 46px;
    font-size: 14px;
  }
  .search-form .search-icon {
    left: 16px;
    width: 18px;
    height: 18px;
  }
  .search-form .search-submit-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }
}
