
 h4 {
  color: #0b2545;

  margin-bottom: 1rem;
  display: block;
    margin-block-start: 1.0em;
    margin-block-end: 0.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}




/* ========== BUTTON STYLES (Primary & Secondary) ========== */

.btn-primary {
  display: inline-block !important;
  background-color: #1e90ff !important; /* Dodger Blue */
  color: white !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 140px;
  white-space: nowrap;
  user-select: none;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 9999 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1c86ee;
  outline: none;
}

.btn-primary:active {
  background-color: #187bcd;
}

.btn-secondary {
  display: inline-block !important;
  background-color: #007BFF !important; /* Bootstrap blue */
  color: white !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 120px;
  white-space: nowrap;
  user-select: none;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 9999 !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #0056b3 !important;
  outline: none;
}

.btn-secondary:active {
  background-color: #004a99 !important;
}

/* Mobile overrides */
@media (max-width: 600px) {
  .btn-primary {
    font-size: 1rem !important;
    padding: 0.75rem 1.2rem !important;
    min-width: 120px !important;
    white-space: nowrap !important;
  }
}

/* ========== RESET & BASE STYLES ========== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: #0b2545;
  color: white;
  padding: 0.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem; /* aligns logo and menu equally on all screens */
}

.logo {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.nav-main a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease-in-out;
}

.nav-main a:hover,
.nav-main a:focus {
  color: #68a0cf;
}

/* Section styling */
section {
  padding: 0.1rem 1rem 1rem;
  border-bottom: 1px solid #ddd;
}

section h2,
section h3 {
  color: #0b2545;
  font-weight: 500;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

section p,
section ul {
  max-width: 700px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 1rem;
}

section ul {
  padding-left: 1.2rem;
}

section li {
  margin-bottom: 0.5rem;
}

/* ========== FILTER TOGGLE & FILTERS ========== */

/* Always show filter toggle (details element) on mobile */
.filter-toggle {
  width: 100%;
  border-bottom: 1px solid #ccc;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
  margin-bottom: 1rem;
}
.filter-group label {
  display: block;
  margin-bottom: 0.25em; /* space between checkboxes */
}

/* Style the summary for the toggle */
.filter-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: bold;
  user-select: none;
  outline-offset: 4px;
  outline-color: #888;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Remove default arrow in Firefox */
.filter-toggle summary::-webkit-details-marker {
  display: none;
}

/* Custom caret icon */
.filter-toggle summary::after {
  content: "▸";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
  transform-origin: center;
  color: #666;
  margin-left: 10px;
}

/* Rotate caret when open */
.filter-toggle[open] summary::after {
  transform: rotate(90deg);
}

/* Filters container inside toggle */
.filter-toggle .filters {
  padding: 1rem 1rem 2rem;
  border-top: 1px solid #ccc;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}

/* ========== DESKTOP LAYOUT (≥600px) ========== */

@media (min-width: 600px) {

  /* Hide the filter toggle on desktop */
  .filter-toggle {
    display: none;
  }

.filter-group label {
  display: block;
  margin-bottom: 0.25em; /* space between checkboxes */
}
  /* Show filters sidebar as fixed column */
  .filters {
    display: block;
    flex: 0 0 250px;
    max-width: 250px;
    border-right: 1px solid #ccc;
    padding-right: 1rem;
    box-sizing: border-box;
    position: sticky;
    top: 1rem;
    height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    font-family: Arial, sans-serif;
  }

  /* Layout container for filters + tools grid */
  .tools-layout {
    display: flex;
    gap: 2rem;
  }

  .tools-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

/* ========== MOBILE LAYOUT (<600px) ========== */

/* Hide any .filters container that is NOT inside the toggle on mobile */
@media (max-width: 599px) {
  .filters:not(.filter-toggle .filters) {
    display: none !important;
  }
}

/* ========== TOOL CARDS AND TAGS ========== */

.tool-card {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height:300px;
}

.tool-logo {
  max-width: 100px;
  margin-bottom: 0.5rem;
}

.tool-name {
  margin: 0.5rem 0;
  font-size: 0.8rem;
}

.tool-tags .tag {
  background-color: #e0e0e0;
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  margin-right: 0.3rem;
  font-size: 0.8rem;
}

.compare-checkbox {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

label {
  display: block;
  margin-bottom: 0px; /* Reduce space between items */
  font-size: 0.9rem;   /* Optional: smaller text */
  line-height: 0.5;
}

label input[type="checkbox"] {
  transform: scale(0.95); /* Make checkbox smaller */
  margin-right: 6px;      /* Adjust spacing between checkbox and label */
  vertical-align: middle;
}

.slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 150px;
}

input[type="range"] {
  width: 100%;
}

.slider-labels {
  font-size: 14px;
  color: #333;
}
