/* Websites listing — WebsitesForChildren.com */
.ws-page {
  --ws-blue: #1a73e8;
  --ws-blue-dark: #0a1931;
  --ws-green: #22c55e;
  --ws-green-dark: #16a34a;
  --ws-muted: #64748b;
  --ws-radius: 20px;
  --ws-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

body:not(.home-page) main {
  padding-top: 0;
}

/* Hero — listing page (discover) */
.ws-hero:not(.ws-hero--browse) {
  position: relative;
  min-height: 430px;
  padding: 1.9rem 0 1.6rem;
  overflow: visible;
  background-color: #e8f4fc;
  background-image: var(--ws-hero-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.ws-hero:not(.ws-hero--browse) .ws-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255, 255, 255, 0.35) 0%, transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}

.ws-hero:not(.ws-hero--browse) .ws-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.ws-hero:not(.ws-hero--browse) .ws-hero-copy {
  width: min(920px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ws-hero:not(.ws-hero--browse) .ws-hero-copy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ws-blue-dark);
  max-width: none;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.85);
}

.ws-hero:not(.ws-hero--browse) .ws-hero-copy p {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ws-muted);
  max-width: 36rem;
}

/* Hero — browse pages (search / category mockup) */
.ws-hero--browse {
  position: relative;
  min-height: 520px;
  padding: 2rem 0 0;
  overflow: visible;
  background-color: #dceefb;
  background-image: var(--ws-hero-bg);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto min(480px, 92%);
}

.ws-hero--browse .ws-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 480px;
}

.ws-hero--browse .ws-hero-grid {
  position: relative;
  min-height: 480px;
}

.ws-hero--browse .ws-hero-copy {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: min(48%, 34rem);
  padding-inline-start: clamp(0rem, 1vw, 0.5rem);
}

.ws-hero--browse .ws-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0a1931;
}

.ws-hero--browse .ws-hero-copy p {
  margin: 0 0 1.35rem;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
}

.ws-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-hero--browse .ws-hero-features {
  flex-wrap: nowrap;
  gap: 1rem 1.15rem;
}

.ws-hero-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 5.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0a1931;
}

.ws-hero-feat-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff center/20px no-repeat;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.ws-hero-feat-ico.f-safe {
  background-color: #dcfce7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M12 2l8 3v5.5c0 4.9-3.4 9.5-8 10.5-4.6-1-8-5.6-8-10.5V5l8-3zm3.2 7.8l-4.2 4.2-2-2-1.4 1.4 3.4 3.4 5.6-5.6-1.4-1.4z'/%3E%3C/svg%3E");
}

.ws-hero-feat-ico.f-edu {
  background-color: #ede9fe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c3aed'%3E%3Cpath d='M12 3L1 9l11 6 9-4.91V17h2V9L12 3zm0 12.5L5 11.5V16c0 2.2 3.1 4 7 4s7-1.8 7-4v-4.5l-7 4z'/%3E%3C/svg%3E");
}

.ws-hero-feat-ico.f-loved {
  background-color: #ffe4e6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e11d48'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.ws-hero-feat-ico.f-quality {
  background-color: #fef9c3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ca8a04'%3E%3Cpath d='M12 2l2.4 4.8 5.4.8-3.9 3.8.9 5.3L12 14.8 7.2 16.7l.9-5.3L4.2 7.6l5.4-.8L12 2z'/%3E%3C/svg%3E");
}

.ws-hero-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  overflow: visible;
}

.ws-hero-search {
  display: block;
  width: min(480px, calc(50vw - 1.5rem));
  margin: 0 0 0.75rem;
  position: relative;
  z-index: 60;
}

.ws-hero-search-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 0.85rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
}

.ws-hero-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.82rem;
  background: transparent;
}

.ws-filters-card {
  width: 200px;
  flex: 0 0 200px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
  overflow: visible;
  position: relative;
  z-index: 50;
}

.ws-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid #eef2f7;
}

.ws-filters-head strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0a1931;
}

.ws-filters-head-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.ws-filters-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.ws-filters-clear:hover {
  color: #dc2626;
  background: #fef2f2;
}

.ws-filters-clear-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.ws-filters-clear:hover .ws-filters-clear-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.ws-filters-settings {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E");
}

.ws-filters-list {
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  list-style: none;
}

.ws-filter-row-dropdown {
  position: relative;
  z-index: 1;
}

.ws-filter-row-dropdown.is-open {
  z-index: 50;
}

.ws-filter-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ws-filter-row:hover,
.ws-filter-row.is-active {
  background: #f8fafc;
}

.ws-filter-row-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff center/16px no-repeat;
}

.ws-filter-row-ico.i-age {
  background-color: #dcfce7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M16 11c1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3 1.3 3 3 3zm-8 0c1.7 0 3-1.3 3-3S9.7 5 8 5 5 6.3 5 8s1.3 3 3 3z'/%3E%3C/svg%3E");
}

.ws-filter-row-ico.i-cat {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm9 0h7v7h-7v-7z'/%3E%3C/svg%3E");
}

.ws-filter-row-ico.i-lang {
  background-color: #ede9fe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c3aed'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm7.93 9h-3.18a15.7 15.7 0 00-1.12-4.02A8.03 8.03 0 0119.93 11zM12 4c.95 1.6 1.62 3.4 1.94 5.36H10.06A13.2 13.2 0 0112 4zM8.37 6.98A15.7 15.7 0 007.25 11H4.07a8.03 8.03 0 013.3-4.02zM4.07 13h3.18c.22 1.42.62 2.78 1.12 4.02A8.03 8.03 0 014.07 13zm5.99 6.64A13.2 13.2 0 0110.06 13h3.88c-.32 1.96-.99 3.76-1.94 5.36zM15.63 17.02A15.7 15.7 0 0016.75 13h3.18a8.03 8.03 0 01-3.3 4.02z'/%3E%3C/svg%3E");
}

.ws-filter-row-ico.i-safety {
  background-color: #ffedd5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ea580c'%3E%3Cpath d='M12 2l8 3v5.5c0 4.9-3.4 9.5-8 10.5-4.6-1-8-5.6-8-10.5V5l8-3z'/%3E%3C/svg%3E");
}

.ws-filter-row-ico.i-cert {
  background-color: #fef9c3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ca8a04'%3E%3Cpath d='M12 2l2.4 4.8 5.4.8-3.9 3.8.9 5.3L12 14.8 7.2 16.7l.9-5.3L4.2 7.6l5.4-.8L12 2z'/%3E%3C/svg%3E");
}

.ws-filter-row-label {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.ws-filter-row-chevron {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg);
}

.ws-filter-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.ws-filter-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

.ws-filter-menu a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.ws-filter-menu--lang a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ws-hero-previews {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.ws-hero-preview {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.ws-hero-preview-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eef2ff center/18px no-repeat;
}

.ws-hero-preview-ico.i-panda { background-color: #fce7f3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23db2777'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E"); }
.ws-hero-preview-ico.i-rocket { background-color: #dbeafe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M12 2c2 4 2 8 0 12-2-4-2-8 0-12z'/%3E%3C/svg%3E"); }
.ws-hero-preview-ico.i-globe { background-color: #dcfce7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E"); }
.ws-hero-preview-ico.i-palette { background-color: #fef9c3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ca8a04'%3E%3Ccircle cx='8' cy='10' r='2'/%3E%3Ccircle cx='14' cy='8' r='2'/%3E%3Ccircle cx='16' cy='14' r='2'/%3E%3C/svg%3E"); }

.ws-hero-preview-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.ws-hero-preview-lines i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
}

.ws-hero-preview-lines i:first-child { width: 72%; }
.ws-hero-preview-lines i:last-child { width: 48%; }

.ws-hero-preview-badge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #dcfce7 center/11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M12 2l8 3v5.5c0 4.9-3.4 9.5-8 10.5-4.6-1-8-5.6-8-10.5V5l8-3zm3.2 7.8l-4.2 4.2-2-2-1.4 1.4 3.4 3.4 5.6-5.6-1.4-1.4z'/%3E%3C/svg%3E");
}

@media (max-width: 1100px) {
  .ws-hero--browse {
    background-size: auto min(420px, 88%);
  }

  .ws-hero--browse .ws-hero-copy {
    max-width: min(44%, 28rem);
  }

  .ws-hero--browse .ws-hero-features {
    flex-wrap: wrap;
  }

  .ws-hero-search {
    width: min(380px, calc(50vw - 1rem));
  }
}

@media (max-width: 768px) {
  .ws-hero--browse .ws-hero-grid {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .ws-hero--browse .ws-hero-copy {
    position: static;
    transform: none;
    max-width: none;
    margin-bottom: 1.25rem;
  }

  .ws-hero-panel {
    position: static;
    transform: none;
  }

  .ws-hero-search {
    width: 100%;
  }

  .ws-filters-card {
    width: 200px;
  }
}

@media (max-width: 640px) {
  .ws-hero--browse {
    min-height: auto;
    padding-bottom: 2rem;
    background-size: auto min(320px, 70%);
  }

  .ws-hero--browse .ws-hero-inner {
    min-height: auto;
  }

  .ws-hero-features li {
    width: calc(50% - 0.7rem);
  }

  .ws-filters-card {
    width: 200px;
    max-width: 100%;
  }
}

.ws-search {
  display: flex;
  align-items: stretch;
  width: min(680px, 100%);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  margin: 0 auto 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  z-index: 99;
  overflow: visible;
}

.ws-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem 0 1rem;
  min-width: 0;
}

.ws-name-ac {
  position: relative;
}

.ws-hero-search .ws-name-suggest {
  z-index: 99;
}

.ws-name-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 99;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.ws-name-suggest-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  text-decoration: none !important;
  color: inherit;
  box-sizing: border-box;
}

.ws-name-suggest-btn:hover,
.ws-name-suggest-btn.is-active {
  background: #eff6ff;
}

.ws-name-suggest-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f2d5c;
}

.ws-name-suggest-url {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}

.ws-search-field input {
  width: 100%;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1rem;
  background: transparent;
}

.ws-search-btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ws-green), var(--ws-green-dark));
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ws-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.ws-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 50;
}

.ws-pill,
.ws-pill-dropdown .ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ws-pill:hover,
.ws-pill.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--ws-blue-dark);
}

.ws-pill-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: center/16px no-repeat;
}

.ws-pill-ico.i-cat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a73e8'%3E%3Cpath d='M10 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V8a2 2 0 00-2-2h-8l-2-2z'/%3E%3C/svg%3E"); }
.ws-pill-ico.i-age { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E"); }
.ws-pill-ico.i-device { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z'/%3E%3C/svg%3E"); }
.ws-pill-ico.i-lang { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b5cf6'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E"); }
.ws-pill-ico.i-more { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath d='M3 17h6v-6H3v6zm0 4h6v-2H3v2zM3 3v2h6V3H3zm10 0v14h6V3h-6z'/%3E%3C/svg%3E"); }

.ws-pill-dropdown {
  position: relative;
}

.ws-pill-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 50;
  min-width: 11rem;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: var(--ws-shadow);
}

.ws-pill-menu[hidden] { display: none !important; }

.ws-pill-menu a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none !important;
}

.ws-pill-menu a:hover {
  background: #f1f5f9;
}

.ws-pill-dropdown--lang {
  z-index: 99;
}

.ws-pill-menu--lang {
  min-width: 15rem;
  z-index: 99;
}

.ws-pill-menu--lang a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ws-pill-menu--lang a .fi {
  width: 1.2rem;
  height: 0.9rem;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.ws-pill-menu--lang .ws-lang-name {
  font-weight: 700;
  line-height: 1.3;
}

/* Sections */
.ws-section {
  --ws-radius: 20px;
  --ws-blue: #1a73e8;
  --ws-blue-dark: #0a1931;
  --ws-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  padding: 2rem 0 2.25rem;
}

.ws-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ws-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ws-blue-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ws-star {
  color: #ffb800;
  font-size: 1.1rem;
}

.ws-view-all {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ws-blue);
  text-decoration: none !important;
  white-space: nowrap;
}

.ws-view-all:hover {
  text-decoration: underline !important;
}

/* Horizontal scroll */
.ws-scroll-wrap {
  position: relative;
}

.ws-scroll-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 0.75rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ws-scroll-track::-webkit-scrollbar {
  display: none;
}

.ws-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ws-scroll-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.ws-scroll-btn::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-right: 2.5px solid #334155;
  border-bottom: 2.5px solid #334155;
}

.ws-scroll-btn.prev {
  left: -0.5rem;
}

.ws-scroll-btn.prev::after {
  transform: rotate(135deg) translate(-1px, -1px);
}

.ws-scroll-btn.next {
  right: -0.5rem;
}

.ws-scroll-btn.next::after {
  transform: rotate(-45deg) translate(-1px, -1px);
}

.ws-scroll-btn[hidden] {
  display: none !important;
}

/* Category cards */
.ws-cat-card {
  flex: 0 0 min(168px, 42vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem 1.1rem;
  border-radius: var(--ws-radius);
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.ws-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ws-shadow);
}

.ws-cat-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 0.65rem;
}

.ws-cat-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ws-cat-card strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ws-blue-dark);
  margin-bottom: 0.2rem;
}

.ws-cat-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ws-muted);
}

.ws-cat-blue { background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%); }
.ws-cat-green { background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%); }
.ws-cat-pink { background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%); }
.ws-cat-orange { background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%); }
.ws-cat-purple { background: linear-gradient(180deg, #faf5ff 0%, #ede9fe 100%); }
.ws-cat-rose { background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%); }
.ws-cat-yellow { background: linear-gradient(180deg, #fefce8 0%, #fef9c3 100%); }

/* Site cards */
.ws-scroll-track--cards .ws-site-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.ws-site-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ws-shadow);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ws-site-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.ws-site-thumb {
  position: relative;
  display: block;
  aspect-ratio: 280 / 175;
  min-height: 175px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  overflow: hidden;
}

.ws-site-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-site-thumb-fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(26, 115, 232, 0.35);
}

.ws-site-thumb.is-fallback .ws-site-thumb-fallback {
  display: grid;
}

.ws-site-age {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ws-blue-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.ws-site-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}

.ws-site-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.ws-site-body h3 a {
  color: var(--ws-blue-dark);
  text-decoration: none !important;
}

.ws-site-body h3 a:hover {
  color: var(--ws-blue);
}

.ws-site-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ws-muted);
  flex: 1;
}

.ws-site-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ws-site-tags span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--ws-blue);
  font-size: 0.72rem;
  font-weight: 700;
}

.ws-site-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.ws-site-score {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ws-green-dark);
}

.ws-site-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ws-site-cert-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.ws-site-cert-img {
  display: block;
  width: auto;
  height: 30px;
  max-width: 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.18));
}

.ws-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9 center/13px no-repeat;
}

.ws-badge.shield { background-color: #dcfce7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M12 2l8 3v5.5c0 4.9-3.4 9.5-8 10.5-4.6-1-8-5.6-8-10.5V5l8-3z'/%3E%3C/svg%3E"); }
.ws-badge.heart { background-color: #ffe4e6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e11d48'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }

.ws-empty {
  text-align: center;
  padding: 2rem;
  color: var(--ws-muted);
  font-weight: 600;
}

.ws-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8eef4;
}

.ws-pager-info {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ws-muted);
  padding: 0 0.35rem;
}

.ws-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ws-blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

a.ws-pager-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--ws-blue);
}

.ws-pager-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Trust bar */
.ws-trust-bar {
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-top: 1px solid #f1f5f9;
}

.ws-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ws-trust-grid article {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ws-trust-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fff center/20px no-repeat;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.ws-trust-ico.shield { background-color: #dcfce7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M12 2l8 3v5.5c0 4.9-3.4 9.5-8 10.5-4.6-1-8-5.6-8-10.5V5l8-3z'/%3E%3C/svg%3E"); }
.ws-trust-ico.age { background-color: #ede9fe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c3aed'%3E%3Cpath d='M16 11c1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3 1.3 3 3 3zm-8 0c1.7 0 3-1.3 3-3S9.7 5 8 5 5 6.3 5 8s1.3 3 3 3z'/%3E%3C/svg%3E"); }
.ws-trust-ico.medal { background-color: #fef9c3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ca8a04'%3E%3Cpath d='M12 2l2.4 4.8 5.4.8-3.9 3.8.9 5.3L12 14.8 7.2 16.7l.9-5.3L4.2 7.6l5.4-.8L12 2z'/%3E%3C/svg%3E"); }
.ws-trust-ico.heart { background-color: #ffe4e6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e11d48'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }

.ws-trust-grid strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ws-blue-dark);
  margin-bottom: 0.15rem;
}

.ws-trust-grid p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ws-muted);
}

@media (max-width: 1100px) {
  .ws-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ws-hero:not(.ws-hero--browse) {
    min-height: 336px;
    background-size: cover;
    background-position: center 30%;
  }
  .ws-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ws-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ws-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ws-search {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
  }
  .ws-search-btn {
    width: 100%;
    border-radius: 12px;
  }
  .ws-trust-grid {
    grid-template-columns: 1fr;
  }
  .ws-scroll-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .ws-grid {
    grid-template-columns: 1fr;
  }
}

body.rtl .ws-scroll-btn.prev { left: auto; right: -0.5rem; }
body.rtl .ws-scroll-btn.next { right: auto; left: -0.5rem; }

.ws-section-head--search h2 {
  margin-bottom: 0.35rem;
}

.ws-search-count {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ws-muted);
}

.ws-page--search .ws-search-results {
  padding-top: 2rem;
}

.ws-page--category .ws-search-results,
.ws-page--age-group .ws-search-results {
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .ws-page--search .ws-search-results {
    padding-top: 1.5rem;
  }

  .ws-page--category .ws-search-results,
  .ws-page--age-group .ws-search-results {
    padding-top: 1.5rem;
  }
}
