/* ============================================
   InputTesting.com - Main Stylesheet
   W3Schools Style - Clean & Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --w3-font: 'Source Sans Pro', 'Segoe UI', Tahoma, sans-serif;
  --w3-green: #04AA6D;
  --w3-dark-grey: #282A35;
  --w3-white: #FFFFFF;
  --w3-light-grey: #F1F1F1;
  --w3-border-grey: #E7E9EB;
  --w3-text-dark: #282A35;
  --w3-text-grey: #666666;
  --w3-text-light: #999999;
  --w3-pink: #FFC0C7;
  --w3-yellow: #FFF4A3;
  --w3-green-light: #D9EEE1;
  --w3-blue-light: #B4E4F4;
  --w3-orange-light: #FFD062;
  --w3-purple-light: #E7C9FF;
  --tool-bg: #F1F1F1;
  --tool-border: #04AA6D;
  --btn-primary: #04AA6D;
  --btn-primary-hover: #059862;
  --btn-secondary: #E7E9EB;
  --btn-secondary-hover: #D4D4D4;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--w3-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--w3-text-dark);
  background-color: var(--w3-white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 30px 0 20px;
  color: var(--w3-text-dark);
}

h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 35px 0 15px;
  color: var(--w3-text-dark);
  border-bottom: 1px solid var(--w3-border-grey);
  padding-bottom: 8px;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--w3-text-dark);
}

h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 25px 0 10px;
  color: var(--w3-text-dark);
}

p {
  margin-bottom: 18px;
  color: var(--w3-text-grey);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  color: var(--w3-green);
}

ul,
ol {
  margin: 15px 0 25px 30px;
}

li {
  margin-bottom: 12px;
  color: var(--w3-text-grey);
  font-size: 16px;
}

strong {
  color: var(--w3-text-dark);
  font-weight: 700;
}

code,
textarea,
input,
select {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */
header {
  background-color: var(--w3-dark-grey);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 25px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
  padding: 5px 0;
}

.logo-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.logo:hover .logo-box {
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 12px rgba(4, 170, 109, 0.2);
  border-color: #ffffff;
}

.logo-i {
  color: #ffffff !important;
  font-weight: 900;
  font-size: 20px;
  margin-right: 1px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.logo-t {
  color: #04AA6D !important;
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(4, 170, 109, 0.4);
}

.logo span {
  color: var(--w3-green);
  font-weight: 800;
  margin-left: 1px;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav a {
  color: white;
  text-decoration: none;
  padding: 18px 16px;
  display: inline-block;
  font-size: 15px;
  transition: background-color 0.2s;
}

.desktop-nav a:hover {
  background-color: var(--w3-green);
  text-decoration: none;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: white;
  padding: 18px 16px;
  display: inline-block;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
  user-select: none;
}

.dropdown-toggle:hover {
  background-color: var(--w3-green);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--w3-dark-grey);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
}

.menu-svg {
  width: 18px;
  height: 18px;
  stroke: var(--w3-green);
  flex-shrink: 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--w3-dark-grey);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px;
}

.mobile-nav a:hover {
  background-color: var(--w3-green);
}

.mobile-nav.open {
  display: flex;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background-color: var(--w3-light-grey);
  padding: 10px 0;
  font-size: 13px;
  color: var(--w3-text-grey);
  border-bottom: 1px solid var(--w3-border-grey);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb a {
  color: var(--w3-text-grey);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--w3-green);
}

.breadcrumb span {
  color: var(--w3-text-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background-color: var(--btn-primary);
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 400;
  transition: background-color 0.2s;
  min-height: 44px;
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
}

.btn-secondary {
  background-color: var(--btn-secondary);
  color: var(--w3-text-dark);
  border: none;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 400;
  transition: background-color 0.2s;
  min-height: 44px;
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover);
}

.btn-success {
  background-color: var(--w3-green);
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  transition: background-color 0.2s;
}

.btn-success:hover {
  background-color: var(--btn-primary-hover);
}

.btn-success.copied {
  background-color: #059862;
}

/* ============================================
   TOOL BOX
   ============================================ */
.tool-box {
  background-color: var(--tool-bg);
  border: 1px solid var(--w3-border-grey);
  border-left: 3px solid var(--w3-green);
  border-radius: 8px;
  padding: 25px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tool-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--w3-text-dark);
  font-size: 15px;
}

.tool-box textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--w3-border-grey);
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  background-color: white;
  resize: vertical;
  margin-bottom: 15px;
  color: var(--w3-text-dark);
  line-height: 1.6;
}

.tool-box textarea:focus {
  outline: none;
  border-color: var(--w3-green);
  box-shadow: 0 0 0 2px rgba(4, 170, 109, 0.1);
}

.tool-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stats {
  background-color: white;
  padding: 12px;
  border-radius: 4px;
  margin-top: 15px;
  color: var(--w3-text-grey);
  font-size: 14px;
  border: 1px solid var(--w3-border-grey);
}

.stats.success {
  color: var(--w3-green);
  border-color: var(--w3-green);
}

.stats.error {
  color: #e74c3c;
  border-color: #e74c3c;
}

/* Tool Options (checkboxes/selects within tool box) */
.tool-options {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.tool-options input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.tool-options select {
  padding: 8px 12px;
  border: 1px solid var(--w3-border-grey);
  border-radius: 4px;
  background-color: white;
  color: var(--w3-text-dark);
  font-size: 14px;
  cursor: pointer;
}

/* ============================================
   CATEGORY CARDS (Homepage + Category Pages)
   ============================================ */
.category-grid {
  display: grid;
  gap: 30px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  background-color: white;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #000;
  min-height: 220px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.category-card.bg-green {
  background-color: var(--w3-green-light);
}

.category-card.bg-pink {
  background-color: var(--w3-pink);
}

.category-card.bg-yellow {
  background-color: var(--w3-yellow);
}

.category-card.bg-blue {
  background-color: var(--w3-blue-light);
}

.category-card.bg-orange {
  background-color: var(--w3-orange-light);
}

.category-card.bg-purple {
  background-color: var(--w3-purple-light);
}

.category-icon {
  font-size: 40px;
  margin-bottom: 10px;
  display: none;
}

/* Hide icons like W3Schools */
.category-card h3 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #000;
}

.category-card p {
  color: #000;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 25px;
  max-width: 300px;
}

.category-btn-w3 {
  background-color: var(--w3-dark-grey);
  color: white;
  border-radius: 25px;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  transition: opacity 0.2s;
}

.category-card:hover .category-btn-w3 {
  opacity: 0.9;
}

.tool-count {
  display: none;
}

/* Tool Cards Grid (on category pages) */
.tools-grid {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-card {
  background-color: white;
  border: 1px solid var(--w3-border-grey);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: inherit;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.tool-card:hover {
  border-color: var(--w3-green);
  box-shadow: 0 15px 35px rgba(4, 170, 109, 0.08);
  transform: translateY(-8px);
  text-decoration: none;
}

.tool-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(4, 170, 109, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.tool-card:hover .tool-card-icon {
  background: var(--w3-green);
  color: white;
}

.tool-card:hover .tool-card-icon svg {
  stroke: white;
}

.tool-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--w3-green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card h3 {
  font-size: 18px;
  margin: 0;
  color: var(--w3-text-dark);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.tool-card p {
  font-size: 14px;
  color: var(--w3-text-grey);
  margin: 0;
  line-height: 1.6;
}

.tool-card-footer {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.tool-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--w3-green);
  border: 2px solid var(--w3-green);
  border-radius: 6px;
  padding: 8px 18px;
  transition: all 0.3s;
}

.tool-card:hover .tool-card-btn {
  background: #038d5a;
  border-color: #038d5a;
  color: white;
  transform: scale(1.05);
}

.tool-card-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   RELATED TOOLS
   ============================================ */
.related-tools {
  background-color: var(--w3-light-grey);
  padding: 20px;
  border-radius: 4px;
  margin: 40px auto;
  max-width: 1200px;
}

.related-tools h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 12px;
}

.related-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-btn {
  display: inline-block;
  background-color: white;
  color: var(--w3-text-dark);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--w3-border-grey);
  font-size: 14px;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.related-btn:hover {
  background-color: var(--w3-green);
  color: white;
  border-color: var(--w3-green);
  text-decoration: none;
}

/* ============================================
   ARTICLE / TOOL CONTENT
   ============================================ */
.tool-content {
  margin: 30px 0;
}

.tool-content h2 {
  border-bottom: 1px solid var(--w3-border-grey);
  padding-bottom: 10px;
}

.tool-content p {
  color: var(--w3-text-grey);
  line-height: 1.7;
}

.tool-content ul,
.tool-content ol {
  color: var(--w3-text-grey);
}

.subtitle {
  font-size: 18px;
  color: var(--w3-text-grey);
  margin-top: -10px;
  margin-bottom: 0;
}

/* Info Box */
.info-box {
  background-color: var(--w3-yellow);
  border-left: 4px solid #f39c12;
  padding: 15px 20px;
  border-radius: 4px;
  margin: 20px 0;
}

.info-box p {
  color: var(--w3-text-dark);
  margin: 0;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  margin: 60px auto;
  max-width: 1200px;
}

.faq-section>h2 {
  border-bottom: 1px solid var(--w3-border-grey);
  padding-bottom: 10px;
}

.faq-accordion {
  margin-top: 20px;
}

.faq-item {
  border: 1px solid var(--w3-border-grey);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  background-color: white;
}

.faq-question {
  width: 100%;
  background-color: white;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--w3-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
  min-height: 54px;
}

.faq-question:hover {
  background-color: var(--w3-light-grey);
}

.faq-question.active {
  background-color: var(--w3-light-grey);
  color: var(--w3-green);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--w3-text-grey);
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-arrow {
  transition: transform 0.3s;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
  color: var(--w3-green);
}

.faq-answer {
  display: none;
  padding: 16px 20px;
  background-color: var(--w3-light-grey);
  border-top: 1px solid var(--w3-border-grey);
}

.faq-answer p {
  color: var(--w3-text-grey);
  margin: 0;
  line-height: 1.7;
}

.faq-answer.open {
  display: block;
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */
.hero {
  background-color: var(--w3-dark-grey);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-search {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 15px;
  outline: none;
  font-family: 'Source Sans Pro', sans-serif;
}

.hero-search button {
  background-color: var(--w3-green);
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.2s;
}

.hero-search button:hover {
  background-color: var(--btn-primary-hover);
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */
.section-header {
  margin: 40px 0 20px;
}

.section-header h2 {
  font-size: 28px;
}

.section-header p {
  color: var(--w3-text-grey);
  margin: 5px 0 0;
}

.features-strip {
  background-color: #f7f9fa;
  border-top: 1px solid var(--w3-border-grey);
  border-bottom: 1px solid var(--w3-border-grey);
  padding: 40px 0;
  margin: 40px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-item {
  text-align: center;
  padding: 25px 20px;
  background-color: white;
  border-radius: 12px;
  border: 1px solid var(--w3-border-grey);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--w3-green);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: rgba(4, 170, 109, 0.1);
  color: var(--w3-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.feature-icon-wrapper svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.feature-item h4 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--w3-text-dark);
  font-weight: 700;
}

.feature-item p {
  font-size: 13px;
  color: var(--w3-text-grey);
  margin: 0;
  line-height: 1.5;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--w3-dark-grey);
  color: #f1f1f1;
  padding: 48px 20px 32px;
  font-size: 15px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-column h3 {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 5px;
}

.footer-column ul li a {
  color: #f1f1f1;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.1s;
  font-size: 15px;
}

.footer-column ul li a:hover {
  color: var(--w3-green);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  line-height: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.footer-cert {
  margin-top: 25px;
  opacity: 0.8;
}

/* ============================================
   CONTACT / ABOUT PAGES
   ============================================ */
.contact-form {
  background-color: var(--w3-light-grey);
  border-left: 3px solid var(--w3-green);
  border-radius: 4px;
  padding: 30px;
  margin: 30px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--w3-text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--w3-border-grey);
  border-radius: 4px;
  font-size: 15px;
  color: var(--w3-text-dark);
  background-color: white;
  font-family: 'Source Sans Pro', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--w3-green);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.about-intro {
  background-color: var(--w3-light-grey);
  border-left: 3px solid var(--w3-green);
  padding: 25px 30px;
  border-radius: 4px;
  margin: 30px 0;
}

/* ============================================
   VALIDATOR SPECIFIC
   ============================================ */
.validation-result {
  padding: 15px 20px;
  border-radius: 4px;
  margin-top: 15px;
  font-size: 14px;
  font-family: 'Consolas', monospace;
  display: none;
}

.validation-result.valid {
  background-color: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
  display: block;
}

.validation-result.invalid {
  background-color: #f8d7da;
  border: 1px solid #dc3545;
  color: #721c24;
  display: block;
}

.error-list {
  margin: 10px 0 0 20px;
}

.error-list li {
  margin-bottom: 5px;
}

/* ============================================
   INVISIBLE CHARACTER SPECIFIC
   ============================================ */
.char-display {
  background-color: var(--w3-dark-grey);
  color: var(--w3-green);
  padding: 20px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 16px;
  text-align: center;
  margin: 15px 0;
  letter-spacing: 2px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.char-btn {
  background-color: white;
  border: 1px solid var(--w3-border-grey);
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.char-btn:hover,
.char-btn.active {
  background-color: var(--w3-green);
  color: white;
  border-color: var(--w3-green);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search input {
    border-radius: 4px;
  }

  .hero-search button {
    border-radius: 4px;
  }

  /* Visual Preview for Invisible Tools */
  .visual-preview {
    background-color: #f1f3f5;
    border: 1px dashed var(--w3-border-grey);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    position: relative;
  }

  .visual-preview::before {
    content: 'Visual Preview';
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: white;
    padding: 0 8px;
    font-size: 11px;
    color: var(--w3-text-grey);
    font-weight: 700;
    text-transform: uppercase;
  }

  .char-block {
    display: inline-block;
    background-color: rgba(0, 188, 212, 0.2);
    border: 1px solid rgba(0, 188, 212, 0.4);
    width: 14px;
    height: 20px;
    border-radius: 2px;
    vertical-align: middle;
  }

  .char-block.zero-width {
    width: 2px;
    border-right: none;
  }

  .tool-box {
    padding: 15px;
  }

  .tool-buttons {
    flex-direction: column;
  }

  .tool-buttons button {
    width: 100%;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  main {
    padding: 20px 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  /* Specifically make features 2x2 on mobile */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-item {
    padding: 15px 10px;
  }

  .feature-item h4 {
    font-size: 14px;
  }

  .feature-item p {
    font-size: 11px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .dropdown-toggle {
    padding: 18px 12px;
    font-size: 14px;
  }

  .desktop-nav a {
    padding: 18px 12px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-green {
  color: var(--w3-green);
}

.mt-30 {
  margin-top: 30px;
}

.mb-30 {
  margin-bottom: 30px;
}

.badge {
  display: inline-block;
  background-color: var(--w3-green);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

/* Print */
@media print {

  header,
  footer,
  .tool-buttons,
  .related-tools {
    display: none;
  }

  .tool-box {
    border: 1px solid #ccc;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   TOOL CONTENT SECTION (Articles)
   ============================================ */
.tool-content {
  max-width: 1200px;
  margin: 40px auto;
  background-color: white;
  padding: 40px;
  border: 1px solid var(--w3-border-grey);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tool-content h1 {
  font-size: 30px;
}

.tool-content h2,
.tool-content h3 {
  color: #000;
}

.tool-content p,
.tool-content li {
  line-height: 1.8;
  color: #212529;
}

.tool-content a {
  color: #04AA6D;
  text-decoration: underline;
}