
/* =====================================
   GEOSPHERE ANALYTICS - KNOWLEDGE HUB
   ===================================== */

.knowledge-header,
.knowledge-main,
.knowledge-footer {
  font-family: inherit;
}

.knowledge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 6%;
  background: #ffffff;
  border-bottom: 1px solid #e5eaf0;
}

.knowledge-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #12314a;
  text-decoration: none;
  font-weight: 700;
}

.knowledge-brand img {
  width: 260px;
  height: 100px;
  object-fit: contain;
  display:'block';
}

.knowledge-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.knowledge-nav a {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.knowledge-nav a:hover,
.knowledge-nav a[aria-current="page"] {
  color: #078b91;
}

.knowledge-main {
  color: #1d2939;
}

.knowledge-hero {
  padding: 82px 20px 76px;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(9, 37, 58, 0.96),
    rgba(10, 91, 106, 0.86));
}

.knowledge-eyebrow {
  margin: 0 0 12px;
  color: #0b9299;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.knowledge-hero .knowledge-eyebrow {
  color: #80e4df;
}

.knowledge-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
}

.knowledge-hero > p:not(.knowledge-eyebrow) {
  max-width: 680px;
  margin: 0 auto 28px;
  color: #e1edf4;
  line-height: 1.8;
}

.knowledge-primary-btn {
  display: inline-block;
  padding: 13px 23px;
  border-radius: 7px;
  background: #18a5a5;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.knowledge-primary-btn:hover {
  background: #128787;
}

.knowledge-search-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 20px 22px;
}

.knowledge-search-section label {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}

.knowledge-search-section input {
  box-sizing: border-box;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #d5dfe8;
  border-radius: 8px;
  background: #ffffff;
  color: #1d2939;
  font: inherit;
  outline: none;
}

.knowledge-search-section input:focus {
  border-color: #078b91;
  box-shadow: 0 0 0 3px rgba(7, 139, 145, 0.13);
}

.knowledge-search-hint {
  color: #667085;
  font-size: 13px;
}

.knowledge-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  margin: 20px 6% 70px;
  padding: 30px;
  border: 1px solid #e2e8ef;
  border-radius: 16px;
  background: #f7fafc;
}

.knowledge-featured-content h2 {
  margin: 0 0 16px;
  color: #12314a;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.25;
}

.knowledge-featured-content > p:not(.knowledge-eyebrow) {
  color: #526174;
  line-height: 1.8;
}

.knowledge-featured > img {
  width: 100%;
  min-height: 240px;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
}

.knowledge-text-link {
  display: inline-block;
  margin-top: 8px;
  color: #078b91;
  font-weight: 700;
  text-decoration: none;
}

.knowledge-topics-section {
  padding: 20px 6% 75px;
}

.knowledge-section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.knowledge-section-heading h2,
.knowledge-news h2 {
  margin: 0 0 12px;
  color: #12314a;
  font-size: clamp(27px, 4vw, 38px);
}

.knowledge-section-heading > p:last-child,
.knowledge-news > p:last-child {
  color: #667085;
  line-height: 1.7;
}

.knowledge-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.knowledge-filter {
  padding: 10px 17px;
  border: 1px solid #d8e2e9;
  border-radius: 30px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.knowledge-filter:hover,
.knowledge-filter.active {
  border-color: #078b91;
  background: #078b91;
  color: #ffffff;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.knowledge-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5eaf0;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(18, 49, 74, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18, 49, 74, 0.11);
}

.knowledge-card[hidden] {
  display: none !important;
}

.knowledge-card > img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #e8eff3;
}

.knowledge-card-body {
  padding: 21px;
}

.knowledge-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: #078b91;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.knowledge-card h3 {
  margin: 0 0 12px;
  color: #12314a;
  font-size: 22px;
}

.knowledge-card p {
  min-height: 76px;
  color: #667085;
  font-size: 14px;
  line-height: 1.8;
}

.knowledge-card a {
  display: inline-block;
  margin-top: 8px;
  color: #078b91;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.knowledge-card a:hover,
.knowledge-text-link:hover {
  text-decoration: underline;
}

.knowledge-empty {
  padding: 25px;
  text-align: center;
  color: #667085;
}

.knowledge-news {
  margin: 0 6% 70px;
  padding: 38px;
  border-radius: 14px;
  background: #eef6f8;
  text-align: center;
}

.knowledge-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px 6%;
  background: #102d43;
  color: #dbe8f0;
  font-size: 13px;
}

.knowledge-footer a {
  color: #80e4df;
  text-decoration: none;
}

/* Tablet */
@media (max-width: 900px) {
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-featured {
    gap: 22px;
    margin-right: 4%;
    margin-left: 4%;
    padding: 24px;
  }

  .knowledge-header {
    padding-right: 4%;
    padding-left: 4%;
  }

  .knowledge-nav {
    gap: 14px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .knowledge-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .knowledge-nav {
    gap: 12px 18px;
  }

  .knowledge-nav a {
    font-size: 13px;
  }

  .knowledge-hero {
    padding: 60px 20px;
  }

  .knowledge-featured {
    grid-template-columns: 1fr;
    margin: 12px 18px 48px;
    padding: 20px;
  }

  .knowledge-featured > img {
    min-height: 190px;
  }

  .knowledge-topics-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .knowledge-card p {
    min-height: 0;
  }

  .knowledge-news {
    margin: 0 18px 45px;
    padding: 26px 20px;
  }

  .knowledge-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-card {
    transition: none;
  }
}

/* Knowledge Hub Search Controls */

.knowledge-search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.knowledge-search-row input {
  flex: 1;
  min-width: 0;
}

.knowledge-search-button {
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: #078b91;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.knowledge-search-button:hover {
  background: #066e75;
}

.knowledge-clear-button {
  margin-top: 10px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #078b91;
  font: inherit;
  cursor: pointer;
}

#knowledgeSearchResult {
  color: #526174;
  font-size: 14px;
}

@media (max-width: 480px) {
  .knowledge-search-row {
    flex-direction: column;
  }

  .knowledge-search-button {
    width: 100%;
  }
}

/* Ensure filtered knowledge cards stay hidden */
.knowledge-grid .knowledge-card[hidden] {
  display: none !important;
}
