/* Main site styles for texttoolz.com */
body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  background: #fafbfc;
  color: #222;
  line-height: 1.6;
}
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body.dark-mode {
  background: #181a1b;
  color: #e5e7eb;
}

/* Global Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Consistent padding for all containers */
}

/* Site Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 18px 0; /* Adjusted padding to use container's horizontal padding */
}

body.dark-mode .site-header {
  background: #23272a;
  border-color: #23272a;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #5a4fff;
  text-decoration: none;
  white-space: nowrap; /* Prevent logo from wrapping */
}

.logo span {
  color: #ffb100;
}

body.dark-mode .logo-purple { color: #b4aaff; }
body.dark-mode .logo-orange { color: #ffd580; }
body.dark-mode .logo-dot { color: #444; }

/* Search Bar in Header */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 0 15px; /* Adjusted padding */
  max-width: 420px;
  min-width: 200px; /* Smaller min-width for better responsiveness */
  margin: 0 20px; /* Adjusted margin */
  border: 1.5px solid #e5e7eb;
  height: 48px;
}

body.dark-mode .search-bar {
  background: #23272a;
  border: 1px solid #23272a;
}

.search-bar input {
  width: 100%;
  padding: 12px 0; /* Adjusted padding */
  border: none;
  background: transparent;
  font-size: 1.1rem; /* Slightly smaller font */
  outline: none;
  color: #222; /* Default text color */
}

body.dark-mode .search-bar input {
  color: #e5e7eb;
}

.search-icon {
  color: #b3b3c6;
  font-size: 1.25rem; /* Slightly smaller icon */
  margin-right: 10px;
}

/* Navigation Menu Styles */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem; /* Adjusted font size */
  padding: 9px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

body.dark-mode .main-nav .nav-link {
  color: #e5e7eb;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: #f5f7ff;
  color: #6c63ff;
}

body.dark-mode .main-nav ul li a:hover,
body.dark-mode .main-nav ul li a.active {
  background: #3a3f42;
  color: #b4aaff;
}

/* Specific styling for login/signup buttons within nav */
.main-nav .nav-link.login {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #222;
  border-radius: 6px;
  padding: 7px 18px;
  font-weight: 500;
  margin-right: 4px;
  transition: background 0.2s;
}

body.dark-mode .main-nav .nav-link.login {
  background: #23272a;
  color: #e5e7eb;
  border: 1px solid #23272a;
}

.main-nav .nav-link.signup {
  background: #6c63ff;
  color: #fff;
  border-radius: 6px;
  padding: 7px 18px;
  font-weight: 500;
  border: none;
  margin-left: 0;
  transition: background 0.2s;
}

body.dark-mode .main-nav .nav-link.signup {
  background: #6c63ff;
  color: #fff;
}

.main-nav .nav-link.signup:hover {
  background: #554ee2;
}

body.dark-mode .main-nav .nav-link.signup:hover {
  background: #554ee2;
}

/* Dark/Light Mode Toggle */
.mode-toggle {
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s;
  margin-left: 10px;
}

body.dark-mode .mode-toggle {
  background: #23272a;
  color: #b4aaff;
  border: 1px solid #23272a;
}

.mode-toggle:hover {
  background: #e5e7eb;
}

body.dark-mode .mode-toggle:hover {
  background: #2e3133;
}

/* Dropdown Styles - Increased Specificity */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7em;
  margin-left: 6px;
  vertical-align: middle;
}

.main-nav ul li .dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none !important; /* IMPORTANT: Use !important to force hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 8px 0;
  margin-top: 8px;
  z-index: 1000; /* Ensure it appears above other content */
  flex-direction: column; /* Ensure vertical layout for its children */
}

/* Increased specificity for show state */
.main-nav ul li .dropdown-menu.show {
  display: flex !important; /* IMPORTANT: Use !important to force display when 'show' is present */
}

.dropdown-menu li {
  padding: 0;
  width: 100%; /* Ensure each list item takes full width */
}

.dropdown-menu li a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 15px;
  display: block; /* Ensure the link fills the list item */
}

.dropdown-menu li a:hover {
  background: #f5f7ff;
  color: #6c63ff;
}

/* Dark mode adjustments for dropdown (increased specificity) */
body.dark-mode .main-nav ul li .dropdown-menu {
  background: #2e3133;
  border-color: #2e3133;
}

body.dark-mode .dropdown-menu li a {
  color: #e5e7eb;
}

body.dark-mode .dropdown-menu li a:hover {
  background: #3a3f42;
  color: #b4aaff;
}

/* Mobile Navigation */
.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #222;
}

body.dark-mode .menu-toggle {
  color: #e5e7eb;
}

@media (max-width: 900px) {
  .search-bar {
    display: none; /* Hide search bar in header on mobile */
  }

  .main-nav {
    flex-grow: 1;
    justify-content: flex-end;
    height: auto;
    flex-direction: column; /* Stack nav items vertically */
    align-items: flex-end; /* Align to the right */
    position: absolute; /* Position relative to header */
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 280px; /* Max width for mobile menu */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 999;
    transform: translateX(100%); /* Hide off-screen initially */
    transition: transform 0.3s ease-out;
  }

  body.dark-mode .main-nav {
    background: #23272a;
    box-shadow: 0 2px 12px #181a1b;
  }

  .main-nav.open {
    transform: translateX(0); /* Slide in when open */
  }

  .main-nav ul {
    flex-direction: column; /* Ensure vertical stacking */
    width: 100%;
    gap: 0;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    padding: 12px 20px; /* Larger tap area */
    text-align: left;
  }

  .main-nav .nav-link.login,
  .main-nav .nav-link.signup {
    margin-right: 0;
    margin-left: 0;
    width: calc(100% - 40px); /* Adjust for padding */
    text-align: center;
    padding: 10px 0;
    margin: 5px 20px; /* Center buttons */
  }
  
  .main-nav .nav-link.login {
    border: 1px solid #e5e7eb;
  }

  .main-nav .nav-link.signup {
    background: #6c63ff;
  }

  .menu-toggle {
    display: block; /* Show hamburger icon */
  }

  /* Media Query Adjustments for Dropdown on Mobile */
  .main-nav ul li .dropdown-menu {
    position: static; /* Remove absolute positioning on mobile */
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    display: none !important; /* Crucial: Hidden by default on mobile, controlled by JS */
    flex-direction: column; /* Ensure vertical layout on mobile */
  }

  .main-nav ul li .dropdown-menu.show {
    display: flex !important; /* Always display as flex when 'show' class is present on mobile */
  }
}

/* --- New Hero Section Styles (tv- prefixed for uniqueness) --- */
.tv-hero-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #e0e7ff 0%, #d8e0ff 100%);
  border-radius: 12px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.tv-hero-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 20px 20px;
  background-image: radial-gradient(#d5defa 1px, transparent 1px);
  opacity: 0.5;
  z-index: 0;
}

.tv-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.tv-hero-content {
  flex: 1;
  text-align: left;
}

.tv-hero-heading {
  font-size: 3.8rem;
  line-height: 1.1;
  color: #2a2a2a;
  margin-bottom: 25px;
}

.tv-hero-highlight-text {
  background: linear-gradient(45deg, #6c63ff, #ff6347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tv-hero-description {
  font-size: 1.25rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.tv-hero-actions-group {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.tv-hero-btn-primary {
  background-color: #6c63ff;
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
  cursor: pointer;
}

.tv-hero-btn-primary:hover {
  background-color: #554ee2;
}

.tv-hero-btn-secondary {
  background-color: #f0f2f5;
  color: #222;
  border: 1px solid #e5e7eb;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.tv-hero-btn-secondary:hover {
  background-color: #e5e7eb;
  border-color: #d1d5db;
}

.tv-hero-free-note {
  font-size: 0.9rem;
  color: #777;
  margin-top: 20px;
}

.tv-hero-categories-display {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.tv-hero-category-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tv-hero-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tv-hero-category-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Category-specific icon colors */
.tv-hero-category-pdf .tv-hero-category-icon { color: #4fc3f7; }
.tv-hero-category-calc .tv-hero-category-icon { color: #81c784; }
.tv-hero-category-ai .tv-hero-category-icon { color: #b39ddb; }
.tv-hero-category-conv .tv-hero-category-icon { color: #7986cb; }

/* Responsive Adjustments for Hero Section */
@media (max-width: 900px) {
  .tv-hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .tv-hero-content {
    text-align: center;
  }

  .tv-hero-heading {
    font-size: 2.8rem;
  }

  .tv-hero-actions-group {
    justify-content: center;
  }

  .tv-hero-categories-display {
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Dark Mode for New Hero Section Styles */
body.dark-mode .tv-hero-section {
  background: linear-gradient(135deg, #1f2327 0%, #1e2125 100%);
}

body.dark-mode .tv-hero-grid-background {
  background-image: radial-gradient(#2a2e33 1px, transparent 1px);
}

body.dark-mode .tv-hero-heading {
  color: #e5e7eb;
}

body.dark-mode .tv-hero-description,
body.dark-mode .tv-hero-free-note {
  color: #b0b3b8;
}

body.dark-mode .tv-hero-btn-primary {
  background-color: #6c63ff;
  color: #fff;
}

body.dark-mode .tv-hero-btn-primary:hover {
  background-color: #554ee2;
}

body.dark-mode .tv-hero-btn-secondary {
  background-color: #2a2a2a;
  color: #e5e7eb;
  border-color: #3a3f42;
}

body.dark-mode .tv-hero-btn-secondary:hover {
  background-color: #3a3f42;
  border-color: #4a4f52;
}

body.dark-mode .tv-hero-categories-display,
body.dark-mode .tv-hero-category-card {
  background: #23272a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #e5e7eb;
}

body.dark-mode .tv-hero-category-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tv-hero-category-card span {
  color: #e5e7eb;
}


/* --- General Section Spacing --- */
/* Add a top margin to main content sections to prevent overlap */
main > section {
  margin-top: 60px; /* Adjust as needed */
}

/* Specific adjustments for the first tool-section if needed, though general section spacing should handle it */
.tool-section:first-of-type {
    margin-top: 60px; /* Ensure spacing below hero for the first section */
}

/* Tool Section Header */
.tool-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.tool-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

body.dark-mode .tool-section-title {
  color: #e5e7eb;
}

.tool-section-desc {
  font-size: 1rem;
  color: #555;
  margin-top: 5px;
}

body.dark-mode .tool-section-desc {
  color: #b0b3b8;
}

.tool-section-viewall {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.tool-section-viewall:hover {
  color: #554ee2;
}

body.dark-mode .tool-section-viewall {
  color: #b4aaff;
}

body.dark-mode .tool-section-viewall:hover {
  color: #9f8cff;
}


/* Tool Card Styles (used in sections like Converters, Text Tools) */
.tool-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
  gap: 28px;
  margin-bottom: 40px;
}

.tool-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* The new colored top border */
  border-top: 5px solid transparent; /* Default transparent, will be overridden by category color */
  overflow: hidden;
  text-decoration: none;
  color: #222;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}

body.dark-mode .tool-card {
  background: #23272a;
  box-shadow: 0 2px 12px #181a1b;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Category-specific top border color for the tool card */
.tool-card-text-manipulation { border-top-color: #1e90ff; }
.tool-card-url-tools { border-top-color: #ff6b6b; }
.tool-card-encoding-decoding { border-top-color: #00BCD4; }
.tool-card-text-style-generators { border-top-color: #FF9800; }
.tool-card-special-text-converters { border-top-color: #2196F3; }
.tool-card-number-tools { border-top-color: #9C27B0; }
.tool-card-other-tools { border-top-color: #4CAF50; }

/* Dark mode for category-specific top border color */
body.dark-mode .tool-card-text-manipulation { border-top-color: #1e90ff; }
body.dark-mode .tool-card-url-tools { border-top-color: #ff6b6b; }
body.dark-mode .tool-card-encoding-decoding { border-top-color: #00BCD4; }
body.dark-mode .tool-card-text-style-generators { border-top-color: #FF9800; }
body.dark-mode .tool-card-special-text-converters { border-top-color: #2196F3; }
body.dark-mode .tool-card-number-tools { border-top-color: #9C27B0; }
body.dark-mode .tool-card-other-tools { border-top-color: #4CAF50; }


.tool-card-top {
  /* Removed background, as border is now on .tool-card */
  height: 80px; /* Reduced height, just enough for the circle and some padding */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px; /* Push down slightly from the new border */
}

.tool-icon-circle {
  width: 70px;
  height: 70px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-mode .tool-icon-circle {
  background-color: #1e2123;
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Category-specific icon colors within the white circle */
.tool-card-text-manipulation .tool-icon-circle i { color: #1e90ff; }
.tool-card-url-tools .tool-icon-circle i { color: #ff6b6b; }
.tool-card-encoding-decoding .tool-icon-circle i { color: #00BCD4; }
.tool-card-text-style-generators .tool-icon-circle i { color: #FF9800; }
.tool-card-special-text-converters .tool-icon-circle i { color: #2196F3; }
.tool-card-number-tools .tool-icon-circle i { color: #9C27B0; }
.tool-card-other-tools .tool-icon-circle i { color: #4CAF50; }

/* Dark mode adjustments for icons within the white circle */
body.dark-mode .tool-card-text-manipulation .tool-icon-circle i { color: #1e90ff; }
body.dark-mode .tool-card-url-tools .tool-icon-circle i { color: #ff6b6b; }
body.dark-mode .tool-card-encoding-decoding .tool-icon-circle i { color: #00BCD4; }
body.dark-mode .tool-card-text-style-generators .tool-icon-circle i { color: #FF9800; }
body.dark-mode .tool-card-special-text-converters .tool-icon-circle i { color: #2196F3; }
body.dark-mode .tool-card-number-tools .tool-icon-circle i { color: #9C27B0; }
body.dark-mode .tool-card-other-tools .tool-icon-circle i { color: #4CAF50; }

.tool-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tool-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #222;
}

body.dark-mode .tool-card-content h3 {
  color: #e5e7eb;
}

.tool-card-content h3 a {
  color: #5a4fff;
  text-decoration: none;
}

.tool-card-content h3 a:hover {
  text-decoration: underline;
}

.tool-card-content p {
  color: #555;
  font-size: 0.95rem;
  margin: 0 0 18px 0;
  line-height: 1.5;
  flex-grow: 1;
  text-decoration: none;
}

body.dark-mode .tool-card-content p {
  color: #b0b3b8;
}

.tool-card-content p:hover {
  text-decoration: underline;
}

/* New container for badges and free text */
.tool-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Pushes this row to the bottom of the flex column */
  width: 100%;
}

.tool-card-badges {
  display: flex;
  gap: 8px;
  margin-top: 0; /* Removed margin-top, now handled by tool-card-bottom-row */
}

.badge {
  display: inline-block;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  background: #f0f2f5;
  color: #555;
  border: 1px solid #e5e7eb;
}

body.dark-mode .badge {
  background: #23272a;
  color: #b4aaff;
  border-color: #2e3133;
}

.badge-type {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  transition: background-color 0.2s, color 0.2s;
  color: #6c757d;
  background-color: #e9ecef;
}

/* Category-specific badge background colors */
.tool-card-text-manipulation .badge-type { background-color: #1e90ff; color: #fff; }
.tool-card-url-tools .badge-type { background-color: #ff6b6b; color: #fff; }
.tool-card-encoding-decoding .badge-type { background-color: #00BCD4; color: #fff; }
.tool-card-text-style-generators .badge-type { background-color: #FF9800; color: #fff; }
.tool-card-special-text-converters .badge-type { background-color: #2196F3; color: #fff; }
.tool-card-number-tools .badge-type { background-color: #9C27B0; color: #fff; }
.tool-card-other-tools .badge-type { background-color: #4CAF50; color: #fff; }

/* Dark mode adjustments for badges */
body.dark-mode .badge-type {
  color: #e5e7eb;
  background-color: #2e3133;
}

body.dark-mode .tool-card-text-manipulation .badge-type { background-color: #1e90ff; color: #fff; }
body.dark-mode .tool-card-url-tools .badge-type { background-color: #ff6b6b; color: #fff; }
body.dark-mode .tool-card-encoding-decoding .badge-type { background-color: #00BCD4; color: #fff; }
body.dark-mode .tool-card-text-style-generators .badge-type { background-color: #FF9800; color: #fff; }
body.dark-mode .tool-card-special-text-converters .badge-type { background-color: #2196F3; color: #fff; }
body.dark-mode .tool-card-number-tools .badge-type { background-color: #9C27B0; color: #fff; }
body.dark-mode .tool-card-other-tools .badge-type { background-color: #4CAF50; color: #fff; }

.badge-popular {
  background: #007bff;
  color: #fff;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  vertical-align: super;
  margin-left: 6px;
  border: none;
}

body.dark-mode .badge-popular {
  background: #6c63ff;
  color: #fff;
}

.tool-card-free {
  /* Removed absolute positioning */
  position: static; /* Ensure it flows naturally */
  color: #888;
  font-size: 0.9rem; /* Adjusted font size */
  font-weight: 500;
  margin-left: auto; /* Push to the right within flex container */
}

body.dark-mode .tool-card-free {
  color: #b0b3b8;
}

/* More Categories Section (homepage) */
.more-categories-section {
    margin-top: 60px; /* Consistent spacing */
    background-color: #f7f8fa; /* Light background */
    padding: 40px 0;
}

body.dark-mode .more-categories-section {
    background-color: #1f2123;
}

.more-categories-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 30px;
}

body.dark-mode .more-categories-title {
    color: #e5e7eb;
}

.more-categories-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-content: center;
}

.more-cat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .more-cat-card {
    background: #23272a;
    box-shadow: 0 2px 12px #181a1b;
    color: #e5e7eb;
}

.more-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.more-cat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #6c63ff; /* Default icon color */
}

body.dark-mode .more-cat-icon {
    color: #b4aaff;
}

.more-cat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

body.dark-mode .more-cat-label {
    color: #e5e7eb;
}


/* CTA Section */
.cta-section {
    margin-top: 60px;
    padding: 60px 0;
    background: linear-gradient(135deg, #6c63ff 0%, #a05bff 100%);
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

body.dark-mode .cta-section {
    background: linear-gradient(135deg, #4b42cc 0%, #7d3acc 100%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.cta-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-actions .btn-primary {
    background-color: #fff;
    color: #6c63ff;
}

.cta-actions .btn-primary:hover {
    background-color: #f0f0f0;
}

.cta-actions .btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}


/* General Category Section Styles (used on homepage) */
.categories-section {
    margin-top: 60px;
    padding: 40px 0;
    background-color: #f7f8fa;
}

body.dark-mode .categories-section {
    background-color: #1f2123;
}

.categories-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 30px;
}

body.dark-mode .categories-section .section-title {
    color: #e5e7eb;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .category-card {
    background-color: #23272a;
    color: #e5e7eb;
    box-shadow: 0 2px 12px #181a1b;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #6c63ff; /* Default icon color if not specified by category */
}

body.dark-mode .category-icon {
    color: #b4aaff;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #222;
}

body.dark-mode .category-name {
    color: #e5e7eb;
}

.category-count {
    font-size: 0.9rem;
    color: #777;
}

body.dark-mode .category-count {
    color: #b0b3b8;
}

/* Category Page Layout (for individual category pages) */
.category-page-layout {
  display: flex;
  gap: 20px;
  padding: 40px 0;
  align-items: flex-start;
}

.category-sidebar {
  flex: 0 0 250px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  height: fit-content;
}

body.dark-mode .category-sidebar {
  background: #23272a;
  box-shadow: 0 2px 12px #181a1b;
}

.category-sidebar h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 20px;
  color: #2a2a2a;
}

body.dark-mode .category-sidebar h3 {
  color: #e5e7eb;
}

.category-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-sidebar ul li {
  margin-bottom: 10px;
}

.category-sidebar ul li:last-child {
  margin-bottom: 0;
}

.category-sidebar ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  padding: 8px 12px;
  display: block;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

body.dark-mode .category-sidebar ul li a {
  color: #b0b3b8;
}

.category-sidebar ul li a:hover,
.category-sidebar ul li a.active {
  background: #f5f7ff;
  color: #6c63ff;
}

body.dark-mode .category-sidebar ul li a:hover,
body.dark-mode .category-sidebar ul li a.active {
  background: #3a3f42;
  color: #b4aaff;
}

.category-main-content {
  flex: 1;
}

/* Tool Breadcrumbs */
.tool-breadcrumbs {
  padding: 15px 0;
  font-size: 0.9rem;
  color: #777;
}

body.dark-mode .tool-breadcrumbs {
  color: #b0b3b8;
}

.tool-breadcrumbs a {
  color: #6c63ff;
  text-decoration: none;
}

body.dark-mode .tool-breadcrumbs a {
  color: #b4aaff;
}

.tool-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Tool Header Card (for individual tool pages) */
.tool-header-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px; /* Space below header card */
}

body.dark-mode .tool-header-card {
  background: #23272a;
  box-shadow: 0 2px 12px #181a1b;
}

.tool-header-icon {
  font-size: 3.5rem;
  color: #6c63ff;
  margin-bottom: 15px;
}

body.dark-mode .tool-header-icon {
  color: #b4aaff;
}

.tool-header-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

body.dark-mode .tool-header-title {
  color: #e5e7eb;
}

.tool-header-desc {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

body.dark-mode .tool-header-desc {
  color: #b0b3b8;
}

/* Tool Tabs (Tool, Info, FAQ) */
.tool-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

body.dark-mode .tool-tabs {
  border-color: #2e3133;
}

.tool-tab {
  padding: 12px 20px;
  text-decoration: none;
  color: #777;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  margin: 0 10px;
  white-space: nowrap;
  cursor: pointer; /* Ensure it looks clickable */
}

body.dark-mode .tool-tab {
  color: #b0b3b8;
}

.tool-tab.active {
  color: #6c63ff;
  border-color: #6c63ff;
}

body.dark-mode .tool-tab.active {
  color: #b4aaff;
  border-color: #b4aaff;
}

.tool-tab:hover:not(.active) {
  color: #555;
  border-color: #ccc;
}

body.dark-mode .tool-tab:hover:not(.active) {
  color: #e5e7eb;
  border-color: #444;
}

/* Tool Main Card (for input/output sections) */
.tool-main-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

body.dark-mode .tool-main-card {
  background: #23272a;
  box-shadow: 0 2px 12px #181a1b;
}

/* Tool Input/Output Elements */
.tool-input-row {
  margin-bottom: 20px;
}

.tool-input-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

body.dark-mode .tool-input-row label {
  color: #e5e7eb;
}

.tool-input-row input,
.tool-input-row textarea,
.tool-input-row select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.2s;
  background-color: #fff; /* Ensure white background for inputs */
}

body.dark-mode .tool-input-row input,
body.dark-mode .tool-input-row textarea,
body.dark-mode .tool-input-row select {
  background: #2e3133;
  border-color: #444;
  color: #e5e7eb;
}

.tool-input-row textarea {
  resize: vertical;
  min-height: 100px;
}

.tool-btn-row {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.tool-result-card {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 24px;
  border: 1px solid #e5e7eb;
}

body.dark-mode .tool-result-card {
  background: #23272a;
  border: 1px solid #333;
}

.tool-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tool-result-header label {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
}

.tool-result-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

body.dark-mode .tool-result-title {
  color: #e5e7eb;
}

.tool-result-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  resize: vertical;
  min-height: 100px;
  color: #333;
}

body.dark-mode .tool-result-textarea {
  background: #2c2f33;
  border-color: #444;
  color: #f0f0f0;
}

.tool-copy-btn {
  background-color: #6c63ff;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

body.dark-mode .tool-copy-btn {
  background-color: #5a4fff;
}

.tool-copy-btn:hover {
  background-color: #554ee2;
}

body.dark-mode .tool-copy-btn:hover {
  background-color: #4b42cc;
}


/* Other Tools and Browse Categories Sections (from footer partial) */
.other-tools-section,
.browse-categories-section {
    padding: 40px 0;
    background-color: #f7f8fa; /* Light background for sections */
}

body.dark-mode .other-tools-section,
body.dark-mode .browse-categories-section {
    background-color: #1f2123;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #222;
    margin: 0;
}

body.dark-mode .section-header h2 {
    color: #e5e7eb;
}

.view-all-link {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #554ee2;
}

body.dark-mode .view-all-link {
    color: #b4aaff;
}

body.dark-mode .view-all-link:hover {
    color: #9f8cff;
}

/* Categories Grid for Browse Categories section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .category-card {
    background-color: #23272a;
    color: #e5e7eb;
    box-shadow: 0 2px 12px #181a1b;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff; /* Ensures the icon inside the colored circle is white */
}

.category-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #222;
}

body.dark-mode .category-card-content h3 {
    color: #e5e7eb;
}

.category-card-content p {
    font-size: 0.9rem;
    color: #777;
}

body.dark-mode .category-card-content p {
    color: #b0b3b8;
}

/* Background colors for category icons - Match existing in categories.php or style.css */
.category-text-manipulation-bg { background-color: #1e90ff; /* Similar to text-tools */ }
.category-url-tools-bg { background-color: #ff6b6b; /* Similar to url-tools */ }
.category-encoding-bg { background-color: #00BCD4; /* Similar to enc/dec */ }
.category-text-styles-bg { background-color: #FF9800; /* Similar to style */ }
.category-text-converters-bg { background-color: #2196F3; /* Similar to special */ }
.category-number-tools-bg { background-color: #9C27B0; /* Similar to number */ }
.category-other-tools-bg { background-color: #4CAF50; /* Similar to other */ }


/* All Tools Page Grid Layout */
.alltools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tool-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #222;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

body.dark-mode .tool-card {
  background: #23272a;
  color: #e5e7eb;
  box-shadow: 0 2px 12px #181a1b;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tool-card-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 0;
}

.tool-icon-circle {
  width: 70px;
  height: 70px;
  background: #f7f8fa;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  box-shadow: 0 2px 8px rgba(90,79,255,0.04);
  margin-bottom: 0;
}
body.dark-mode .tool-icon-circle {
  background: #23272a;
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.tool-card-content {
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  width: 100%;
  text-align: center;
}
.tool-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #222;
}
body.dark-mode .tool-card-content h3 {
  color: #e5e7eb;
}
.tool-card-content p {
  color: #555;
  font-size: 0.97rem;
  margin: 0 0 18px 0;
  line-height: 1.5;
  flex-grow: 1;
}
body.dark-mode .tool-card-content p {
  color: #b0b3b8;
}
.tool-card-badges {
  display: flex;
  gap: 8px;
  margin-top: 0;
  justify-content: center;
}
.badge.badge-type {
  display: inline-block;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  background: #f0f2f5;
  color: #555;
  border: 1px solid #e5e7eb;
}
body.dark-mode .badge.badge-type {
  background: #23272a;
  color: #b4aaff;
  border-color: #2e3133;
}

@media (max-width: 700px) {
  .alltools-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tool-card {
    min-width: 0;
    padding: 0;
  }
  .tool-card-content {
    padding: 16px 10px 14px 10px;
  }
}

/* All Tools and Category Pages Sidebar */
.alltools-flex {
    display: flex;
    gap: 20px;
    padding: 40px 0;
    align-items: flex-start;
}

.alltools-sidebar-card {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    height: fit-content;
}

body.dark-mode .alltools-sidebar-card {
    background: #23272a;
    box-shadow: 0 2px 12px #181a1b;
}

.alltools-sidebar-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2a2a2a;
}

body.dark-mode .alltools-sidebar-title {
    color: #e5e7eb;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

body.dark-mode .category-list li a {
    color: #b0b3b8;
}

.category-list li a:hover,
.category-list li a.active {
    background: #f5f7ff;
    color: #6c63ff;
}

body.dark-mode .category-list li a:hover,
body.dark-mode .category-list li a.active {
    background: #3a3f42;
    color: #b4aaff;
}

.alltools-content {
    flex: 1;
}

/* Footer Styles */
.site-footer {
  background: #f7f8fa;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

body.dark-mode .site-footer {
  background: #23272a;
  border-color: #23272a;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-col {
  flex: 1;
  min-width: 150px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #222;
}

body.dark-mode .footer-col h4 {
  color: #fff;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

body.dark-mode .footer-col ul li a {
  color: #b0b3b8;
}

.footer-col ul li a:hover {
  color: #6c63ff;
}

body.dark-mode .footer-col ul li a:hover {
  color: #b4aaff;
}

.footer-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin-top: 30px;
  margin-bottom: 20px;
}

body.dark-mode .footer-divider {
  border-top: 1px solid #23272a;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #777;
}

body.dark-mode .footer-copyright {
  color: #b0b3b8;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social-icon {
  font-size: 1.2rem;
  color: #777;
  text-decoration: none;
  transition: color 0.2s ease;
}

body.dark-mode .footer-social-icon {
  color: #b0b3b8;
}

.footer-social-icon:hover {
  color: #6c63ff;
}

body.dark-mode .footer-social-icon:hover {
  color: #b4aaff;
}


/* Responsive Media Queries */
@media (max-width: 1100px) {
  .tool-card-row {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  .category-page-layout {
    flex-direction: column;
  }

  .category-sidebar {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
  }

  .alltools-flex {
    flex-direction: column;
  }

  .alltools-sidebar-card {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h2 {
        margin-bottom: 10px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .footer-flex {
        flex-direction: column;
        gap: 12px;
        padding: 18px 0 0 0;
        align-items: stretch;
    }
    .footer-col {
        min-width: 0;
        width: 100%;
        margin-bottom: 10px;
    }
    .footer-bottom-flex {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding-bottom: 12px;
    }
}

@media (max-width: 700px) {
  .container {
    padding: 0 10px; /* Slightly more padding on very small screens */
  }

  .site-header {
    padding: 15px 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  .search-bar {
    margin: 0;
    max-width: none;
  }

  .mode-toggle {
    margin-left: 0;
  }

  /* Tool-specific responsive adjustments */
  .tool-breadcrumbs {
    padding: 10px 0;
    font-size: 0.8rem;
  }

  .tool-header-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  .tool-header-title {
    font-size: 2rem;
  }

  .tool-tabs {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    margin-bottom: 15px;
  }
  .tool-tab {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 10px 15px;
  }

  .tool-main-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  .tool-section-title {
    font-size: 1.6rem;
  }
  .tool-section-desc {
    font-size: 0.9rem;
  }
  .tool-input-row {
    margin-bottom: 15px;
  }
  .tool-input-row label {
    font-size: 0.95rem;
  }
  .tool-input-row input,
  .tool-input-row textarea,
  .tool-input-row select {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .tool-btn-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .tool-btn-row .btn-primary,
  .tool-btn-row .btn-secondary {
    width: 100%;
    margin-left: 0;
  }
  .tool-result-card {
    padding: 15px;
    margin-top: 20px;
  }
  .tool-result-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .tool-result-textarea {
    font-size: 0.9rem;
    min-height: 80px;
  }
  .tool-copy-btn {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}
/* TV Hero Section */
.tv-hero-main-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

body.dark-mode .tv-hero-main-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.tv-hero-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
  z-index: 0;
}

body.dark-mode .tv-hero-grid-background {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.tv-hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.tv-hero-left-content {
  flex: 1;
  text-align: left;
}

.tv-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.tv-hero-highlight {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tv-hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

body.dark-mode .tv-hero-description {
  color: #bbb;
}

.tv-hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.tv-hero-btn {
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}



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

.tv-hero-btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.tv-hero-btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.tv-hero-note {
  font-size: 0.9rem;
  color: #777;
}

body.dark-mode .tv-hero-note {
  color: #999;
}

.tv-hero-right-categories {
  flex: 0.8;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 20px;
  background-color: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-light);
}

body.dark-mode .tv-hero-right-categories {
  background-color: var(--card-background-dark);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.tv-hero-category-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color-dark);
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

body.dark-mode .tv-hero-category-card-item {
  background-color: #333;
  color: var(--text-color-light);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

.tv-hero-category-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--shadow-light);
}

body.dark-mode .tv-hero-category-card-item:hover {
  box-shadow: 0 5px 15px var(--shadow-dark);
}

.tv-category-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background-color: rgba(0, 0, 0, 0.05); /* Default */
  color: #333; /* Default */
}

.tv-category-icon {
  font-size: 1.5rem;
}

/* Specific category colors */
.tv-category-pdf .tv-category-icon-wrapper { background-color: #f7e6f9; color: #8C52FF; }
.tv-category-calc .tv-category-icon-wrapper { background-color: #e6f9f7; color: #48BB78; }
.tv-category-ai .tv-category-icon-wrapper { background-color: #e6f7f9; color: #5A50EE; }
.tv-category-conv .tv-category-icon-wrapper { background-color: #f9f7e6; color: #ED8936; }

/* Dark mode category colors */
body.dark-mode .tv-category-pdf .tv-category-icon-wrapper { background-color: rgba(140, 82, 255, 0.2); color: #8C52FF; }
body.dark-mode .tv-category-calc .tv-category-icon-wrapper { background-color: rgba(72, 187, 120, 0.2); color: #48BB78; }
body.dark-mode .tv-category-ai .tv-category-icon-wrapper { background-color: rgba(90, 80, 238, 0.2); color: #5A50EE; }
body.dark-mode .tv-category-conv .tv-category-icon-wrapper { background-color: rgba(237, 137, 54, 0.2); color: #ED8936; }


/* TV Info Platform Section */
.tv-info-platform-section {
  text-align: center;
  -padding: 80px 0;
  background-color: var(--card-background-light);
  -margin-top: 60px; /* Space from hero section */
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.tv-info-platform-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.tv-info-platform-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* TV Homepage Tool Category Section */
.tv-homepage-tool-category-section {
  padding: 60px 0;
}

.tv-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.tv-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tv-section-description {
  font-size: 1.1rem;
  color: #666;
}

.tv-section-view-all {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.tv-tool-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tv-tool-card {
  background-color: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-light);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tv-tool-card-top-bar {
  height: 8px; /* The colored bar */
  width: 100%;
}

.tv-tool-card-content {
  background-color: var(--background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  display: flex
;
  flex-direction: column;
  border: 1px solid #000;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  padding: 20px;
}

.tv-tool-card-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-color-dark);
}

.tv-tool-card-content p {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 15px;
  flex-grow: 1;
}

.tv-tool-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto; /* Pushes badges to the bottom */
}

.tv-tool-badge {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: capitalize;
}

.tv-tool-badge-category {
  background-color: #eee;
  color: #555;
}

.tv-tool-badge-popular {
  background-color: var(--primary-color);
  color: #fff;
}

.tv-tool-card-price {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Tool card specific colors (top bar) */
.tv-tool-card-blue .tv-tool-card-top-bar {
  background-color: var(--blue-category);
}

.tv-tool-card-green .tv-tool-card-top-bar {
  background-color: var(--green-category);
}

.tv-tool-card-purple .tv-tool-card-top-bar {
  background-color: var(--purple-category);
}

.tv-tool-card-orange .tv-tool-card-top-bar {
  background-color: var(--orange-category);
}

/* TV More Categories Section */
.tv-more-categories-section {
  padding: 60px 0;
  text-align: center;
}

.tv-more-categories-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.tv-more-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.tv-more-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  background-color: var(--background-light);
  border-radius: 12px;
  padding: 25px 15px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.tv-more-category-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #f0f0f0; /* Default light grey circle */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tv-more-category-icon {
  font-size: 2rem;
  color: #666; /* Default icon color */
}

/* Specific icon colors for More Categories */
.tv-more-category-icon-ai .tv-more-category-icon {
  color: var(--primary-color);
}

.tv-more-category-icon-dev .tv-more-category-icon {
  color: #2d3748;
} /* Dark blue-gray */

.tv-more-category-icon-img .tv-more-category-icon {
  color: #d69e2e;
} /* Goldenrod */

.tv-more-category-icon-health .tv-more-category-icon {
  color: #e53e3e;
} /* Red */

/* TV Call to Action Section */
.tv-call-to-action-section {
  padding: 80px 0;
  text-align: center;
}

.tv-cta-container {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  padding: 60px 40px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tv-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.tv-cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tv-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tv-cta-btn {
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.tv-cta-btn-primary {
  background-color: #fff;
  color: var(--primary-color);
}

.tv-cta-btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.tool-breadcrumbs ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.tool-breadcrumbs li {
  display: inline;
  margin-right: 0.5em;
  white-space: nowrap;
}
.tool-breadcrumbs li a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
}
.tool-breadcrumbs li a:hover {
  text-decoration: underline;
}
.tool-breadcrumbs li:not(:last-child)::after {
  content: '>>';
  margin: 0 0.4em;
  color: #888;
}
.tool-breadcrumbs li:last-child {
  margin-right: 0;
}
.collapsible-text {
  max-height: 150px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.collapsible-text.expanded {
  max-height: 1000px; /* enough to fit full content */
}

.toggle-button {
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.toggle-button:hover {
  background-color: #0056b3;
}

/* --- Static & New Page Styles --- */

/*
==============================================
Generic Static/Legal Page Styles (Terms, Privacy, DMCA)
==============================================
*/
.terms-section .container,
.privacy-section .container,
.dmca-section .container {
  max-width: 800px; /* More readable for text-heavy pages */
}

.terms-content,
.privacy-content,
.dmca-content {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
}

body.dark-mode .terms-content,
body.dark-mode .privacy-content,
body.dark-mode .dmca-content {
  background: #23272a;
  border-color: #3a3f42;
}

.terms-title, .privacy-title, .dmca-title,
.affiliates-title, .press-title, .testimonials-title, .support-title, .faqs-title, .features-title, .pricing-title, .signup-title, .login-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.terms-lead, .privacy-lead, .dmca-lead,
.affiliates-lead, .press-lead, .testimonials-lead, .support-lead, .faqs-lead, .features-lead, .pricing-lead, .signup-lead, .login-lead {
  text-align: center;
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.dark-mode .terms-lead, 
body.dark-mode .privacy-lead,
body.dark-mode .dmca-lead,
body.dark-mode .affiliates-lead, 
body.dark-mode .press-lead, 
body.dark-mode .testimonials-lead, 
body.dark-mode .support-lead,
body.dark-mode .faqs-lead,
body.dark-mode .features-lead,
body.dark-mode .pricing-lead,
body.dark-mode .signup-lead,
body.dark-mode .login-lead {
  color: #adb5bd;
}

.terms-section h2, .privacy-section h2, .dmca-section h2,
.affiliates-section h2, .press-section h2, .testimonials-section h2, .support-section h2, .faqs-section h2, .features-section h2, .pricing-section h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
}

body.dark-mode .terms-section h2,
body.dark-mode .privacy-section h2,
body.dark-mode .dmca-section h2,
body.dark-mode .affiliates-section h2,
body.dark-mode .press-section h2,
body.dark-mode .testimonials-section h2,
body.dark-mode .support-section h2,
body.dark-mode .faqs-section h2,
body.dark-mode .features-section h2,
body.dark-mode .pricing-section h2 {
  border-bottom-color: #3a3f42;
}

.terms-section ul, .terms-section ol,
.privacy-section ul, .privacy-section ol,
.dmca-section ul, .dmca-section ol {
  padding-left: 20px;
  line-height: 1.8;
}

.terms-section li, .privacy-section li, .dmca-section li {
  margin-bottom: 0.75rem;
}

/*
==============================================
Form Styles
==============================================
*/
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Add this */
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="email"],
body.dark-mode .form-group input[type="url"],
body.dark-mode .form-group input[type="password"],
body.dark-mode .form-group textarea {
    background-color: #2c3034;
    border-color: #444;
    color: #eee;
}

.btn.btn-primary {
  background-color: #5a4fff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
}

.btn.btn-primary:hover {
  background-color: #493dc9;
}


/*
==============================================
Affiliates Page Styles
==============================================
*/

.affiliates-section .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.affiliates-section .benefit-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

body.dark-mode .affiliates-section .benefit-card {
   background: #23272a;
   border-color: #3a3f42;
}

.affiliates-section .benefit-icon {
  font-size: 2rem;
  color: #5a4fff;
  margin-bottom: 1rem;
}

.affiliates-section .commission-structure {
  text-align: center;
  margin: 3rem 0;
}

.affiliates-section .commission-tiers {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.affiliates-section .tier {
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 12px;
  flex: 1;
  max-width: 300px;
}

body.dark-mode .affiliates-section .tier {
   background: #23272a;
   border-color: #3a3f42;
}

.affiliates-section .tier.featured {
  border-color: #5a4fff;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.affiliates-section .commission-rate {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5a4fff;
  margin: 0.5rem 0;
}

.affiliates-section .how-it-works .steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.affiliates-section .step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
}

body.dark-mode .affiliates-section .step {
    background: #23272a;
}

.affiliates-section .step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #5a4fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.affiliates-section .signup-form {
  background: #f7f8fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  max-width: 700px;
  margin: 2rem auto;
}

body.dark-mode .affiliates-section .signup-form {
    background: #23272a;
    border-color: #3a3f42;
}

/*
==============================================
Press Page Styles
==============================================
*/
.press-section .company-stats {
  display: flex;
  justify-content: space-around;
  background: #f7f8fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  flex-wrap: wrap;
}

body.dark-mode .press-section .company-stats {
  background: #23272a;
}

.press-section .stat {
  text-align: center;
  padding: 1rem;
}

.press-section .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #5a4fff;
}

.press-section .press-release {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

body.dark-mode .press-section .press-release {
  background: #23272a;
  border-color: #3a3f42;
}

.press-section .release-date {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.press-section .media-kit .media-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.press-section .asset {
  text-align: center;
  padding: 1.5rem;
  background: #f7f8fa;
  border-radius: 12px;
}

body.dark-mode .press-section .asset {
   background: #2c3034;
}

.press-section .asset .fas {
  font-size: 2rem;
  color: #5a4fff;
  margin-bottom: 1rem;
}

/*
==============================================
Testimonials Page Styles
==============================================
*/
.testimonials-section .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.testimonial-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
body.dark-mode .testimonial-card {
    background: #23272a;
    border-color: #3a3f42;
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.user-avatar .fas {
    font-size: 2.5rem;
    color: #ccc;
    background: #f0f0f0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-mode .user-avatar .fas {
    background: #444;
}
.rating .fas {
    color: #ffb100;
}
.testimonial-footer {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/*
==============================================
Support Us Page Styles
==============================================
*/
.support-section .support-method {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
body.dark-mode .support-section .support-method {
    background: #23272a;
    border-color: #3a3f42;
}
.support-section .method-icon .fas {
    font-size: 2.5rem;
    color: #5a4fff;
    width: 60px;
    text-align: center;
}
.support-section .donation-options .btn {
    margin-right: 0.5rem;
    width: auto;
}
.support-section .impact-stats {
    display: flex;
    justify-content: space-around;
    background: #f7f8fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    flex-wrap: wrap;
}
body.dark-mode .support-section .impact-stats {
    background: #23272a;
}
.support-section .impact-stat {
    text-align: center;
    padding: 1rem;
}
.support-section .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #5a4fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pricing-section .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-features {
    flex-grow: 1;
}

.pricing-action {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.testimonials-cta-card {
  background: var(--background-color-offset, #f8f9fa);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.testimonials-cta-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.testimonials-cta-card p {
  font-size: 1.15rem;
  color: var(--text-color-secondary, #555);
  margin-bottom: 2rem;
}
.testimonials-cta-card .btn-large {
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: inline-block;
}
@media (min-width: 600px) {
  .testimonials-cta-card {
    padding: 3rem 4rem 3rem 4rem;
  }
}

.testimonials-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  margin: 2.5rem 0 3.5rem 0;
  flex-wrap: wrap;
}
.testimonials-stats .stat {
  background: var(--background-color-offset, #f8f9fa);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  min-width: 160px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonials-stats .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #5a4fff;
  margin-bottom: 0.5rem;
}
.testimonials-stats .stat-label {
  font-size: 1.08rem;
  color: var(--text-color-secondary, #555);
  font-weight: 500;
}
@media (max-width: 700px) {
  .testimonials-stats {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .testimonials-stats .stat {
    min-width: 0;
    width: 100%;
    padding: 1.2rem 1rem 1rem 1rem;
  }
}
.btn.btn-secondary {
  background: #fff;
  color: #5a4fff;
  border: 2px solid #5a4fff;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  box-shadow: none;
  outline: none;
  display: inline-block;
  text-align: center;
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
  background: #f5f7ff;
  color: #3a2fd6;
  border-color: #3a2fd6;
  text-decoration: none;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 24px 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  color: #222;
  font-weight: 500;
  cursor: pointer;
  gap: 10px;
  user-select: none;
}

.checkbox-group input[type="checkbox"] {
  accent-color: #5a4fff; /* Modern browsers */
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 4px;
  border: 2px solid #b3b3c6;
  transition: border-color 0.18s;
}

.checkbox-group input[type="checkbox"]:focus {
  outline: 2px solid #5a4fff;
  outline-offset: 2px;
}

body.dark-mode .checkbox-group label {
  color: #e5e7eb;
}

body.dark-mode .checkbox-group input[type="checkbox"] {
  border-color: #444;
  background: #23272a;
}
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #5a4fff;
  background: #fff;
  color: #5a4fff;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  outline: none;
  text-align: center;
}

.btn-sm {
  padding: 0.25rem 0.8rem;
  font-size: 0.95rem;
}

.btn-Light {
  background: #fff;
  color: #5a4fff;
  border: 2px solid #5a4fff;
}

.btn-Light.active,
.btn-Light:active,
.btn-Light:focus {
  background: #f5f7ff;
  color: #3a2fd6;
  border-color: #3a2fd6;
}
/* === HEADER (TextToolz) === */
.ttz-header {
  background: #fff;
  border-bottom: 1.5px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(90, 79, 255, 0.03);
}
body.dark-mode .ttz-header {
  background: #181a1b;
  border-bottom: 1.5px solid #23272a;
}

.ttz-header__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.ttz-header__logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
  color: #5a4fff;
  display: flex;
  align-items: center;
}
.ttz-header__logo-main { color: #5a4fff; }
.ttz-header__logo-accent { color: #ffb100; margin-left: 2px; }

.ttz-header__nav {
  flex: 1 1 auto;
  margin-left: 48px;
}
.ttz-header__nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.ttz-header__nav-link {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.ttz-header__nav-link.active,
.ttz-header__nav-link:hover {
  background: #f5f7ff;
  color: #5a4fff;
}
body.dark-mode .ttz-header__nav-link {
  color: #e5e7eb;
}
body.dark-mode .ttz-header__nav-link.active,
body.dark-mode .ttz-header__nav-link:hover {
  background: #23272a;
  color: #b4aaff;
}

.ttz-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 24px;
}

.ttz-header__mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.45rem;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.18s;
  display: flex;
  align-items: center;
}
.ttz-header__mode-toggle:hover {
  background: #f5f7ff;
}
body.dark-mode .ttz-header__mode-toggle:hover {
  background: #23272a;
}
.ttz-header__mode-icon {
  display: none;
}
body:not(.dark-mode) .ttz-header__mode-icon--light { display: inline; }
body.dark-mode .ttz-header__mode-icon--dark { display: inline; }

.ttz-header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}
.ttz-header__menu-bar {
  width: 28px;
  height: 3.5px;
  background: #5a4fff;
  margin: 3.5px 0;
  border-radius: 2px;
  transition: all 0.22s;
}
body.dark-mode .ttz-header__menu-bar {
  background: #b4aaff;
}

/* === Responsive === */
@media (max-width: 900px) {
  .ttz-header__container {
    height: 60px;
  }
  .ttz-header__nav {
    margin-left: 0;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 8px 24px rgba(90, 79, 255, 0.07);
    z-index: 999;
    display: none;
  }
  body.dark-mode .ttz-header__nav {
    background: #181a1b;
  }
  .ttz-header__nav-list {
    flex-direction: column;
    gap: 0;
    padding: 18px 0;
  }
  .ttz-header__nav-list--open {
    display: flex !important;
  }
  .ttz-header__nav {
    display: block;
  }
  .ttz-header__actions {
    margin-left: 0;
  }
  .ttz-header__menu-toggle {
    display: flex;
  }
  .ttz-header__nav-list {
    display: none;
  }
  .ttz-header__nav-list.ttz-header__nav-list--open {
    display: flex;
  }
}

/* === Accessibility/Focus === */
.ttz-header__nav-link:focus,
.ttz-header__mode-toggle:focus,
.ttz-header__menu-toggle:focus {
  outline: 2px solid #5a4fff;
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  background: #fff;
  color: #5a4fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: left 0.2s;
}
.skip-link:focus, .skip-link:active {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  outline: 2px solid #5a4fff;
  box-shadow: 0 2px 8px rgba(90,79,255,0.08);
}

/* =================================================================
   Affiliates Page Styles
   ================================================================= */

.affiliates-section .section-card {
    background-color: var(--background-color-offset);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.affiliates-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* How It Works Section */
.how-it-works .steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.how-it-works .step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.how-it-works .step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color, #5a4fff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.how-it-works .step-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
}

.how-it-works .step-content p {
    margin: 0;
    color: var(--text-color-secondary);
}

/* Marketing Materials Section */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.material-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.material-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.material-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.material-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color-secondary);
}

/* Promotion Ideas Section */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.idea-card {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.idea-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
}

.idea-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.idea-card li {
    margin-bottom: 0.5rem;
    color: var(--text-color-secondary);
}

/* Final CTA Card */
.final-cta-card {
    background-color: var(--primary-color-light);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

.final-cta-card h2 {
    border-bottom: none;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.final-cta-card p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

:root.dark-mode .final-cta-card {
    background-color: rgba(90, 79, 255, 0.1);
    border-color: rgba(90, 79, 255, 0.5);
}
:root.dark-mode .final-cta-card p {
    color: var(--text-color-secondary);
}

/* Signup Form Styling */
.signup-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .signup-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.signup-form .form-group {
    margin-bottom: 1.25rem;
}

.signup-form .btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Affiliates Page - Commission Details Styling */
.commission-details {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.commission-details h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.commission-details ul {
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
}

.commission-details li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-color-secondary);
}

.commission-details li::marker {
    color: var(--primary-color);
}

.commission-details li strong {
    color: var(--text-color);
    font-weight: 600;
}

.commission-details .note {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    color: var(--text-color-secondary);
}

/* =================================================================
   Press Page Styles
   ================================================================= */

/* General Section Card for Press Page */
.press-section .section-card {
    background-color: var(--background-color-offset);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2.5rem;
}

.press-section h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Press Guidelines */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guideline h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.guideline p {
    color: var(--text-color-secondary);
}

/* Stay Updated Section */
.subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Press Contact Section */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-method .fas {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-details h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.contact-details p, .contact-details a {
    margin: 0;
    color: var(--text-color-secondary);
    text-decoration: none;
}
.contact-details a:hover {
    text-decoration: underline;
}

/* Press Inquiry Form */
.press-inquiry-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.press-inquiry-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.press-inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .press-inquiry-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Press Page - Company Information Section */
.company-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.company-info .info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.company-info .info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-info .info-section li {
    margin-bottom: 0.75rem;
    color: var(--text-color-secondary);
}

.company-info .info-section li strong {
    color: var(--text-color);
    font-weight: 600;
}

/* All Tools Search Box */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 2rem auto; /* Centers the box and adds vertical spacing */
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-secondary);
    font-size: 1rem;
    z-index: 10;
}

#toolSearch.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem; /* Top/Bottom, Right, Left with space for icon */
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #2c3034;
    background-color: #fff;
    color: var(--text-color-primary);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#toolSearch.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2); /* Use primary color with opacity */
    outline: none;
}

#toolSearch.form-control::placeholder {
    color: var(--text-color-secondary);
    opacity: 1; /* Override default opacity */
}

.press-inquiry-form .form-row {
    flex-direction: column;
  
}

.fortnite-generator-result .tool-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fortnite-generator-result .fortnite-result {
  display: flex;
  align-items: center;
  min-height: 60px; /* Ensure space for larger fonts */
}

.company-info .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
/* =============================================
   Sign-Up Page: Benefits Section Alignment Fix
   ============================================= */

/* Resets the list style and adds some top margin */
.signup-benefits .benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

/* Turns each list item into a flex container */
.signup-benefits .benefits-list li {
  display: flex;
  align-items: center; /* Vertically centers the icon with the text block */
  margin-bottom: 1.75rem; /* Adds consistent space between each benefit */
}

/* Remove margin from the last item to avoid extra space */
.signup-benefits .benefits-list li:last-child {
  margin-bottom: 0;
}

/* Styles the Font Awesome icons */
.signup-benefits .benefits-list .fas {
  font-size: 1.75rem; /* Increases icon size for better visibility */
  color: #6366f1;     /* A modern, friendly indigo color */
  margin-right: 1.25rem; /* Creates space between the icon and the text */
  width: 32px;           /* Ensures all icons occupy the same space for perfect alignment */
  text-align: center;
}

/* Styles for the heading of each benefit */
.signup-benefits .benefits-list h3 {
  margin: 0 0 0.25rem 0; /* Fine-tunes spacing around the heading */
  font-size: 1.125rem;
  font-weight: 600;
}

/* Styles for the descriptive paragraph */
.signup-benefits .benefits-list p {
  margin: 0;
  color: #6b7280; /* A softer color for better visual hierarchy */
  line-height: 1.6;
}
/* =============================================
   Login Page: Layout and Alignment Fix
   ============================================= */

/* Main container for the login form for better centering and max-width */
.login-container {
  max-width: 420px;
  margin: 2rem auto 0; /* Centers the form on the page */
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Dark mode styles for the login container */
.dark-mode .login-container {
    background-color: #1f2937;
    border-color: #374151;
}

/* Flexbox row for "Remember me" and "Forgot password" */
.form-group-row {
  display: flex;
  justify-content: space-between; /* Pushes items to opposite ends */
  align-items: center; /* Vertically aligns them */
  margin-bottom: 1.25rem;
}

/* Styles for the "Forgot password?" link */
.forgot-link {
  font-size: 0.9rem;
  color: #6366f1;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Footer section for the "Sign up" link */
.login-form .form-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.dark-mode .login-form .form-footer {
    border-top-color: #374151;
}

.login-form .form-footer p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.dark-mode .login-form .form-footer p {
    color: #9ca3af;
}

.login-form .form-footer a {
    color: #6366f1;
    font-weight: 600;
}
/* =============================================
   Authentication Pages (Login, Signup, Forgot Password)
   ============================================= */

/* A container to vertically and horizontally center the auth box */
.auth-section {
  padding: 4rem 1rem;
  min-height: 70vh; /* Ensures the box is centered even on short pages */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb; /* A light gray background for the page */
}

.dark-mode .auth-section {
    background-color: #030712; /* A very dark background for dark mode */
}

/* The main box for the form or confirmation message */
.auth-container {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.dark-mode .auth-container {
  background-color: #111827; /* A dark card background */
  border-color: #374151;
}

.auth-title {
  font-size: 1.75rem; /* 28px */
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.auth-lead {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.dark-mode .auth-lead {
    color: #9ca3af;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Full-width button for auth forms */
.auth-form .btn-large {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Styling for the footer links (e.g., "Back to Login") */
.auth-container .form-footer {
    margin-top: 2rem;
}
/* =============================================
   Header Navigation Dropdown
   ============================================= */

/* Container for dropdown items */
.ttz-header__nav-item--has-dropdown {
  position: relative;
}

/* Arrow icon next to "All Tools" */
.ttz-header__nav-arrow {
  font-size: 0.7em;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

/* The dropdown menu itself */
.ttz-header__nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 0.75rem;
  margin-top: 10px; /* Provides a small gap from the nav item */
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease;
  border: 1px solid #f0f0f0;
}

.dark-mode .ttz-header__nav-dropdown {
    background-color: #1f2937;
    border-color: #374151;
}

/* Show dropdown on hover/focus and rotate arrow */
.ttz-header__nav-item--has-dropdown:hover > .ttz-header__nav-dropdown,
.ttz-header__nav-item--has-dropdown:focus-within > .ttz-header__nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  margin-top: 5px;
}

.ttz-header__nav-item--has-dropdown:hover .ttz-header__nav-arrow {
    transform: rotate(180deg);
}

/* Individual dropdown list items */
.ttz-header__nav-dropdown li a {
    display: block;
  padding: 0.6rem 1rem;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dark-mode .ttz-header__nav-dropdown li a {
    color: #d1d5db;
}

/* Hover effect for dropdown items */
.ttz-header__nav-dropdown li a:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.dark-mode .ttz-header__nav-dropdown li a:hover {
    background-color: #374151;
    color: #ffffff;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .ttz-header__nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    margin-top: 0;
    min-width: 100%;
    padding: 0.5rem 0 0.5rem 1rem; /* Indent mobile dropdown */
    background-color: transparent !important;
  }

  .ttz-header__nav-item--has-dropdown:hover > .ttz-header__nav-dropdown {
    /* On mobile, we use JS to show/hide, so hover is not needed */
    /* This section is intentionally left blank for mobile view */
  }

  .ttz-header__nav-dropdown li a {
    padding: 0.8rem 1rem;
    color: inherit; /* Inherit color from parent nav link */
  }
}

/* Desktop dropdown */
.ttz-header__nav-item--has-dropdown {
  position: relative;
}
.ttz-header__nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  padding: 0.5em 0;
}
.ttz-header__nav-item--has-dropdown:hover > .ttz-header__nav-dropdown,
.ttz-header__nav-item--has-dropdown:focus-within > .ttz-header__nav-dropdown {
  display: block;
}
.ttz-header__nav-dropdown li a {
  display: block;
  padding: 0.7em 1.2em;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.97rem;
  transition: background 0.18s, color 0.18s;
}
.ttz-header__nav-dropdown li a:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Mobile menu and dropdown */
@media (max-width: 900px) {
  .ttz-header__nav-list {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    transition: max-height 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  }
  .ttz-header__nav-list.open {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
  }
  .ttz-header__nav-list > li {
    margin: 0.5em 0;
  }
  .ttz-header__nav-link,
  .ttz-header__nav-link--button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75em 1em;
  }
  /* Dropdown inside mobile menu */
  .ttz-header__nav-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .ttz-header__nav-item--has-dropdown.open > .ttz-header__nav-dropdown {
    display: block;
    margin: 0.2em 0 0.5em 1em;
  }
}

.tool-form-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(90,79,255,0.04);
  margin-bottom: 1.5rem;
}
.tool-form-row label {
  font-weight: 500;
  color: #5a4fff;
  margin-right: 0.5rem;
}
.tool-form-row select,
.tool-form-row input[type="text"] {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 1.08rem;
  background: #fff;
  color: #222;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  min-width: 140px;
}
.tool-form-row select:focus,
.tool-form-row input[type="text"]:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 0 2px #e5e7ff;
}
.tool-form-row .btn-primary {
  padding: 0.7rem 2.2rem;
  font-size: 1.08rem;
  border-radius: 8px;
  margin-left: 0.5rem;
}
@media (max-width: 600px) {
  .tool-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 1rem;
  }
  .tool-form-row label {
    margin-bottom: 0.2rem;
  }
  .tool-form-row .btn-primary {
    width: 100%;
    margin-left: 0;
  }
}

.agg-rating-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #fffbe7;
  border: 1.5px solid #ffe082;
  border-radius: 8px;
  padding: 0.35em 0.9em 0.35em 0.8em;
  font-size: 1em;
  margin: 1.5em auto 1.2em auto;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.08);
  transition: box-shadow 0.2s;
  justify-content: center;
}
.agg-rating-box:hover {
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.16);
}
.agg-rating-stars {
  color: #ffc107;
  font-size: 1.1em;
  letter-spacing: 0.04em;
  margin-right: 0.2em;
  line-height: 1;
}
.agg-rating-value {
  font-weight: 700;
  color: #222;
  margin-right: 0.15em;
}
.agg-rating-count {
  color: #888;
  font-size: 0.97em;
  margin-left: 0.4em;
}
.agg-rating-center {
  width: 100%;
  display: flex;
  justify-content: center;
}
@media (max-width: 600px) {
  .agg-rating-box {
    font-size: 0.97em;
    padding: 0.28em 0.6em 0.28em 0.6em;
  }
}

.gibberish-word {
    display: inline-block;
    background: #f0f4ff;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #5a4fff;
    border: 1px solid #e0e7ff;
}

.result-content {
    line-height: 2;
    word-spacing: 8px;
}
