/* Search box and suggestions styles */
.search-box {
  max-width: 400px;
  width: 100%;
  position: relative;
  align-self: flex-end;
}
.search-box input[type="search"] {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  box-sizing: border-box;
}
#searchSuggestions {
  display: none;
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(49,46,129,0.10);
  z-index: 300;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .search-box {
    max-width: 98vw;
  }
  .search-box input[type="search"] {
    font-size: 1rem;
    padding: 10px 8px;
  }
  #searchSuggestions {
    top: 40px;
    font-size: 0.98rem;
  }
}
.why-card {
  background: linear-gradient(135deg, #f8fafc 60%, #e0e7ff 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(80, 80, 180, 0.10), 0 1.5px 6px 0 rgba(80, 80, 180, 0.08);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  margin: 2.5rem auto 2rem auto;
  max-width: 700px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.why-card:hover {
  box-shadow: 0 8px 32px 0 rgba(80, 80, 180, 0.16), 0 2px 8px 0 rgba(80, 80, 180, 0.10);
}
.why-icon {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #6366f1;
  filter: drop-shadow(0 2px 8px #6366f155);
}
.why-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 1.2rem 0;
  color: #22223b;
  letter-spacing: -1px;
}

section {
  display: block;
  clear: both;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
  text-align: left;
}
.why-list li {
  background: rgba(99, 102, 241, 0.07);
  border-radius: 0.75rem;
  margin-bottom: 0.7rem;
  padding: 0.7rem 1.1rem 0.7rem 2.2rem;
  font-size: 1.08rem;
  color: #22223b;
  position: relative;
  font-weight: 500;
  box-shadow: 0 1px 4px 0 rgba(99,102,241,0.04);
  transition: background 0.2s;
}
.why-list li:last-child {
  margin-bottom: 0;
}
.why-list li:hover {
  background: rgba(99, 102, 241, 0.13);
}
.why-check {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #22c55e;
  font-size: 1.2rem;
  font-weight: bold;
  filter: drop-shadow(0 1px 2px #22c55e33);
}
@media (max-width: 600px) {
  .why-card {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .why-card h2 {
    font-size: 1.2rem;
  }
  .why-icon {
    font-size: 1.5rem;
  }
  .why-list li {
    font-size: 0.98rem;
    padding-left: 1.8rem;
  }
  .why-check {
    left: 0.5rem;
    font-size: 1rem;
  }
}
.category-heading {
  text-align: center;
  background: linear-gradient(90deg, #6366f1 0%, #a21caf 100%);
  padding: 32px 20px 24px 20px;
  border-radius: 18px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(76,29,149,0.08);
  color: #fff;
}
.category-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 10px;
}
.category-heading h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}
.category-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 18px;
}
.category-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #fbc2eb 0%, #a6c1ee 100%);
  border-radius: 2px;
  margin: 0 auto;
}
body.dark-mode {
  background: linear-gradient(120deg, #312e81 0%, #a21caf 100%) !important;
  color: #e0e7ff;
}
body.dark-mode .category-menu,
body.dark-mode .dropdown-list {
  background: #312e81 !important;
  color: #e0e7ff;
}
body.dark-mode .cat-dropdown > span,
body.dark-mode .dropdown-list li a {
  background: #4338ca;
  color: #e0e7ff;
}
body.dark-mode .dropdown-list li a:hover,
body.dark-mode .dropdown-list li a.active {
  background: #a21caf;
  color: #fff;
}
body.dark-mode .tool-desc {
  color: #a5b4fc;
}
body,
.category-menu,
.dropdown-list,
.cat-dropdown > span,
.dropdown-list li a {
  transition: background 0.2s, color 0.2s;
}
.tool-desc {
  display: block;
  font-size: 0.92rem;
  color: #6b7280;
  margin-left: 8px;
  margin-top: 2px;
}
@media (max-width: 700px) {
  .category-menu > ul {
    display: none !important;
    flex-direction: column;
    gap: 0;
    background: #fff;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 201;
    box-shadow: 0 4px 24px rgba(49,46,129,0.10);
    border-radius: 0 0 12px 12px;
    padding: 12px 0;
  }
  .category-menu.open > ul {
    display: flex !important;
  }
  #menuToggle {
    display: block !important;
  }
}
/* Sticky category menu */
.category-menu {
  position: sticky;
  top: 0;
  z-index: 101;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 12px rgba(49,46,129,0.06);
  margin-bottom: 8px;
}

/* Active link highlighting */
.dropdown-list li a.active,
.dropdown-list li a:active {
  background: #a21caf;
  color: #fff;
}
/* Category menu styles */
.category-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-menu > ul {
  background: rgba(49,46,129,0.08);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(49,46,129,0.06);
  padding: 8px 0;
}
.cat-dropdown {
  position: relative;
}
.cat-dropdown > span {
  cursor: pointer;
  font-weight: 600;
  color: #312e81;
  padding: 8px 18px;
  border-radius: 8px;
  background: #f3f4f6;
  transition: background 0.18s;
  display: inline-block;
}
.cat-dropdown > span:hover, .cat-dropdown:focus-within > span {
  background: #6366f1;
  color: #fff;
}
.dropdown-list {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  min-width: 180px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(49,46,129,0.10);
  z-index: 10;
  padding: 8px 0;
}
.cat-dropdown:hover .dropdown-list, .cat-dropdown:focus-within .dropdown-list {
  display: block;
}
.dropdown-list li a {
  display: block;
  padding: 8px 18px;
  color: #312e81;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.dropdown-list li a:hover {
  background: #6366f1;
  color: #fff;
}
body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 50%, #f0abfc 100%) !important;
  background-attachment: fixed;
  color: #1f2937;
  line-height: 1.6;
}
body {
  min-height: 100vh;
}
/* Card hover effect */
.card {
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(76,29,149,0.13);
}

/* Button hover effect */
.btn {
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(34,197,94,0.08);
}
.btn:hover {
  background: #16a34a;
  box-shadow: 0 6px 18px rgba(34,197,94,0.16);
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 50%, #f0abfc 100%) !important;
  background-attachment: fixed;
  color: #1f2937;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  padding: 80px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
/* Back to top button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: background 0.2s;
}
#backToTop:hover {
  background: #22c55e;
}

.hero {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

h2 {
  text-align: center;
  color: #4338ca;
  margin-bottom: 24px;
}

h2 {
  text-align: center;
  color: #4338ca;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  width: 100%;
  margin: 0 auto;
  justify-items: stretch;
  max-width: 100vw;
  box-sizing: border-box;
}

.card {
  background: #fff;
  color: #312e81;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 28px;
}

.card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 14px;
}

footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 50px 20px;
  text-align: center;
}

footer a {
  color: #93c5fd;
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  section {
    max-width: 100vw;
    padding: 40px 1vw;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  section {
    padding: 24px 0.5vw;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
