/* Tools library: unified professional card template. */
.knowledge-app {
  font-family: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  text-align: start;
}

.knowledge-app .knowledge-section__inner,
.knowledge-app .knowledge-tools-categories,
.knowledge-app .knowledge-tools-grid {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.knowledge-app .knowledge-section {
  padding: clamp(2.25rem, 5vw, 4.5rem) 0;
}

.knowledge-app .knowledge-section__header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1.75rem;
  text-align: start;
}

.knowledge-app .knowledge-section__title {
  margin: 0 0 .5rem !important;
  padding: 0 !important;
  color: var(--text-primary, #10283f) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: clamp(1.6rem, 3vw, 2.35rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.knowledge-app .knowledge-section__description {
  max-width: 760px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text-secondary, #5b7082) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: .98rem !important;
  line-height: 1.8 !important;
}

.knowledge-app .knowledge-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

.knowledge-app .knowledge-tool-card {
  --tool-accent: #148b8b;
  --tool-dark: #123b57;
  position: relative !important;
  min-width: 0 !important;
  min-height: 470px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.5rem !important;
  overflow: hidden !important;
  color: var(--text-primary, #10283f) !important;
  text-align: start !important;
  background: linear-gradient(145deg, #fff, #f7fbfc) !important;
  border: 1px solid rgba(18, 59, 87, .16) !important;
  border-radius: 1.35rem !important;
  box-shadow: 0 14px 38px rgba(10, 37, 56, .1) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.knowledge-app .knowledge-tool-card:hover,
.knowledge-app .knowledge-tool-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(20, 139, 139, .5) !important;
  box-shadow: 0 22px 50px rgba(10, 37, 56, .16) !important;
}

.knowledge-app .knowledge-tool-card__header {
  min-height: 4rem !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.knowledge-app .knowledge-tool-card__icon {
  width: 3.75rem !important;
  height: 3.75rem !important;
  flex: 0 0 3.75rem !important;
  display: grid !important;
  place-items: center !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--tool-accent), var(--tool-dark)) !important;
  border: 0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 24px rgba(18, 59, 87, .2) !important;
}

.knowledge-app .knowledge-tool-card__icon svg {
  width: 1.65rem !important;
  height: 1.65rem !important;
}

.knowledge-app .knowledge-tool-card__badges {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: .45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.knowledge-app .knowledge-tool-card__badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 1.85rem !important;
  padding: .3rem .65rem !important;
  color: #15515c !important;
  background: #e9f6f5 !important;
  border: 1px solid #c5e5e2 !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.knowledge-app .knowledge-tool-card__content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.knowledge-app .knowledge-tool-card__title {
  margin: 0 0 .7rem !important;
  padding: 0 !important;
  color: #10283f !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem) !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-align: start !important;
}

.knowledge-app .knowledge-tool-card__description {
  min-height: 5.2rem;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  color: #5a6f81 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: .9rem !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  text-align: start !important;
}

.knowledge-app .knowledge-tool-card__meta,
.knowledge-app .knowledge-tool-card__features {
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.knowledge-app .knowledge-tool-card__features {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .4rem !important;
}

.knowledge-app .knowledge-tool-card__meta-item,
.knowledge-app .knowledge-tool-card__feature {
  min-height: 2rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  margin: 0 !important;
  padding: .35rem .65rem !important;
  color: #294f63 !important;
  background: #f0f7f7 !important;
  border: 1px solid #d8e7e7 !important;
  border-radius: .65rem !important;
  box-shadow: none !important;
  font-size: .76rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: start !important;
}

.knowledge-app .knowledge-tool-card__feature {
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  padding: .2rem 0 !important;
}

.knowledge-app .knowledge-tool-card__meta-item svg,
.knowledge-app .knowledge-tool-card__feature svg {
  width: 1rem !important;
  height: 1rem !important;
  flex: 0 0 1rem !important;
  color: var(--tool-accent) !important;
}

.knowledge-app .knowledge-tool-card__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .7rem !important;
  margin: auto 0 0 !important;
  padding: 1rem 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(18, 59, 87, .1) !important;
  box-shadow: none !important;
}

.knowledge-app .knowledge-tool-card__btn {
  width: 100% !important;
  min-height: 2.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: .65rem .8rem !important;
  border-radius: .8rem !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.knowledge-app .knowledge-tool-card__btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #18aaa8, #147580) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 20px rgba(20, 139, 139, .22) !important;
}

.knowledge-app .knowledge-tool-card__btn--secondary {
  color: var(--tool-dark) !important;
  background: #fff !important;
  border: 1px solid rgba(18, 59, 87, .2) !important;
}

.knowledge-app .knowledge-tools-categories {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

.knowledge-app .knowledge-tool-category-card {
  min-width: 0 !important;
  min-height: 285px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.25rem !important;
  color: #10283f !important;
  text-align: start !important;
  background: #fff !important;
  border: 1px solid rgba(18, 59, 87, .14) !important;
  border-radius: 1.1rem !important;
  box-shadow: 0 10px 28px rgba(10, 37, 56, .08) !important;
}

.knowledge-app .knowledge-tool-category-card__title {
  margin: .8rem 0 .35rem !important;
  color: #10283f !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

.knowledge-app .knowledge-tool-category-card__description {
  margin: 0 0 .8rem !important;
  color: #5a6f81 !important;
  font-size: .84rem !important;
  line-height: 1.7 !important;
}

[data-theme="dark"] .knowledge-app .knowledge-tool-card,
[data-theme="dark"] .knowledge-app .knowledge-tool-category-card {
  color: #edf6fb !important;
  background: linear-gradient(145deg, #0d2133, #10283b) !important;
  border-color: rgba(169, 205, 225, .2) !important;
}

[data-theme="dark"] .knowledge-app .knowledge-tool-card__title,
[data-theme="dark"] .knowledge-app .knowledge-tool-category-card__title,
[data-theme="dark"] .knowledge-app .knowledge-section__title {
  color: #f3f8fb !important;
}

[data-theme="dark"] .knowledge-app .knowledge-tool-card__description,
[data-theme="dark"] .knowledge-app .knowledge-tool-category-card__description,
[data-theme="dark"] .knowledge-app .knowledge-section__description {
  color: #b8cad7 !important;
}

[data-theme="dark"] .knowledge-app .knowledge-tool-card__meta-item {
  color: #d8e8f0 !important;
  background: rgba(100, 176, 179, .11) !important;
  border-color: rgba(133, 202, 203, .2) !important;
}

[data-theme="dark"] .knowledge-app .knowledge-tool-card__feature {
  color: #d8e8f0 !important;
}

[data-theme="dark"] .knowledge-app .knowledge-tool-card__btn--secondary {
  color: #e7f3f8 !important;
  background: #173247 !important;
  border-color: rgba(169, 205, 225, .24) !important;
}

@media (max-width: 900px) {
  .knowledge-app .knowledge-tools-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .knowledge-app .knowledge-tools-grid,
  .knowledge-app .knowledge-tools-categories {
    grid-template-columns: 1fr !important;
  }

  .knowledge-app .knowledge-tool-card {
    min-height: auto !important;
    padding: 1.2rem !important;
  }

  .knowledge-app .knowledge-tool-card__description {
    min-height: auto;
  }

  .knowledge-app .knowledge-tool-card__actions {
    grid-template-columns: 1fr !important;
  }
}
