/* =========================================================
   KNOWLEDGE PAGE STYLE INDEX
   1. Hidden Home Sections
   2. Knowledge Page Shell
   3. Hero
   4. Filter Bar
   5. Review Blocks
   6. CTA
   7. Responsive Rules
   ========================================================= */

body.knowledge-page {
  background:
    radial-gradient(circle at 16% 0%, rgba(79, 134, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(129, 93, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #09062a 0%, #0a0831 46%, #09062c 100%);
}

.knowledge-page .hero-community-section,
.knowledge-page .iam-reels-section,
.knowledge-page .home-showcase-section {
  display: none !important;
}

.knowledge-main {
  position: relative;
  padding: 24px 0 100px;
  overflow: clip;
}

.knowledge-main::before,
.knowledge-main::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.knowledge-main::before {
  top: 160px;
  left: -180px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.18), transparent 70%);
}

.knowledge-main::after {
  top: 520px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(157, 84, 255, 0.16), transparent 72%);
}

.knowledge-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.knowledge-kicker,
.knowledge-review-eyebrow,
.knowledge-summary-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #bfcaf7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.knowledge-hero {
  padding: 26px 0 26px;
}

.knowledge-hero .knowledge-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: center;
}

.knowledge-title {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: clamp(36px, 4.2vw, 66px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--text-main);
}

.knowledge-lead {
  margin: 0;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.knowledge-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.knowledge-primary-btn,
.knowledge-secondary-btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.knowledge-primary-btn {
  background: linear-gradient(135deg, #5c89ff 0%, #2e5dff 100%);
  color: #fff;
  box-shadow: 0 18px 38px rgba(37, 99, 255, 0.32);
}

.knowledge-secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.knowledge-primary-btn:hover,
.knowledge-secondary-btn:hover {
  transform: translateY(-2px);
}

.knowledge-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.knowledge-stat-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 14, 60, 0.84), rgba(9, 9, 43, 0.9));
  box-shadow: 0 18px 35px rgba(3, 8, 34, 0.22);
}

.knowledge-stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.knowledge-stat-card span {
  color: var(--text-muted);
  font-size: 14px;
}

.knowledge-hero-stage {
  position: relative;
  min-height: 620px;
  border-radius: 40px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(91, 128, 255, 0.22), transparent 32%),
    radial-gradient(circle at 50% 76%, rgba(154, 90, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(16, 14, 64, 0.88), rgba(8, 7, 42, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(2, 6, 31, 0.32);
}

.knowledge-hero-stage::before,
.knowledge-hero-stage::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.knowledge-hero-stage::before {
  top: 14%;
  left: 18%;
  width: 62%;
  height: 62%;
}

.knowledge-hero-stage::after {
  top: 26%;
  left: 10%;
  width: 78%;
  height: 78%;
}

.knowledge-stage-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(290px, 72%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.knowledge-core-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(101, 142, 255, 0.22), rgba(101, 142, 255, 0.08));
  border: 1px solid rgba(101, 142, 255, 0.24);
  color: #d8e1ff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.knowledge-stage-core h2 {
  margin: 0;
  color: #f5f7ff;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.knowledge-stage-core p {
  margin: 14px auto 0;
  max-width: 250px;
  color: rgba(223, 230, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.knowledge-float-card {
  position: absolute;
  width: 182px;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 45px rgba(4, 8, 33, 0.34);
  backdrop-filter: blur(14px);
  animation: knowledgeFloat 7s ease-in-out infinite;
}

.knowledge-float-card img {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.knowledge-float-card div {
  padding: 12px 6px 4px;
}

.knowledge-float-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.knowledge-float-card span {
  color: rgba(223, 230, 255, 0.78);
  font-size: 12px;
}

.knowledge-float-card.card-a {
  top: 34px;
  left: 24px;
  transform: rotate(-11deg);
}

.knowledge-float-card.card-b {
  top: 38px;
  right: 30px;
  transform: rotate(11deg);
  animation-delay: -1.2s;
}

.knowledge-float-card.card-c {
  bottom: 42px;
  left: 68px;
  transform: rotate(8deg);
  animation-delay: -2.2s;
}

.knowledge-float-card.card-d {
  right: 48px;
  bottom: 58px;
  transform: rotate(-9deg);
  animation-delay: -3.2s;
}

.knowledge-stage-avatars span,
.knowledge-orbit-face {
  position: absolute;
  display: block;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.knowledge-stage-avatars span:nth-child(1) {
  top: 90px;
  left: 44%;
  width: 42px;
  height: 42px;
}

.knowledge-stage-avatars span:nth-child(2) {
  top: 210px;
  right: 18%;
  width: 54px;
  height: 54px;
}

.knowledge-stage-avatars span:nth-child(3) {
  bottom: 134px;
  left: 22%;
  width: 46px;
  height: 46px;
}

.knowledge-stage-avatars span:nth-child(4) {
  bottom: 102px;
  right: 34%;
  width: 40px;
  height: 40px;
}

.knowledge-filter-bar {
  padding: 8px 0 10px;
}

.knowledge-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.knowledge-filter-chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.knowledge-filter-chip:hover,
.knowledge-filter-chip.is-active {
  background: linear-gradient(135deg, rgba(92, 137, 255, 0.22), rgba(46, 93, 255, 0.18));
  border-color: rgba(92, 137, 255, 0.32);
  color: #fff;
  transform: translateY(-1px);
}

.knowledge-reviews {
  padding: 28px 0 22px;
}

.knowledge-review-block {
  margin-bottom: 28px;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 13, 58, 0.92), rgba(8, 8, 39, 0.96)),
    rgba(11, 10, 46, 0.94);
  box-shadow: 0 24px 70px rgba(2, 6, 31, 0.26);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.knowledge-review-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.knowledge-review-block.is-hidden {
  display: none;
}

.knowledge-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.knowledge-review-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.knowledge-review-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.knowledge-review-author h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.knowledge-review-link {
  flex: 0 0 auto;
  color: #d7e1ff;
  text-decoration: none;
  font-weight: 700;
}

.knowledge-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.knowledge-feature-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: #090917;
  cursor: pointer;
}

.knowledge-feature-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.knowledge-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 23, 0.05), rgba(8, 9, 23, 0.5));
}

.knowledge-feature-card:hover img {
  transform: scale(1.04);
}

.knowledge-feature-tag,
.knowledge-feature-play {
  position: absolute;
  z-index: 1;
}

.knowledge-feature-tag {
  top: 18px;
  left: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(7, 10, 32, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-feature-play {
  right: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(92, 137, 255, 0.96), rgba(46, 93, 255, 0.96));
  color: #fff;
  font-size: 24px;
  box-shadow: 0 18px 36px rgba(37, 99, 255, 0.34);
}

.knowledge-review-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.knowledge-summary-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.92;
}

.knowledge-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.knowledge-summary-meta span {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce5ff;
  font-size: 13px;
  font-weight: 600;
}

.knowledge-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.knowledge-mini-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.knowledge-mini-card img {
  width: 100%;
  height: 124px;
  display: block;
  object-fit: cover;
}

.knowledge-mini-card h3 {
  margin: 0;
  padding: 14px 14px 6px;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.knowledge-mini-card p {
  margin: 0;
  padding: 0 14px 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.knowledge-cta-section {
  padding: 18px 0 0;
}

.knowledge-cta-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  min-height: 300px;
  border-radius: 34px;
  border: 1px solid rgba(116, 153, 255, 0.24);
  background:
    radial-gradient(circle at 18% 50%, rgba(102, 165, 255, 0.2), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(160, 102, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #1d4fff 0%, #5935f4 58%, #7438ff 100%);
  box-shadow: 0 28px 75px rgba(11, 19, 76, 0.32);
}

.knowledge-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.knowledge-cta-copy h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(32px, 3vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.knowledge-cta-copy p {
  margin: 0;
  color: rgba(245, 247, 255, 0.84);
  font-size: 16px;
  line-height: 1.85;
}

.knowledge-cta-card .knowledge-secondary-btn {
  background: rgba(10, 12, 46, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.knowledge-cta-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.knowledge-orbit-line {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.knowledge-orbit-line.one {
  top: 16%;
  right: 6%;
  width: 360px;
  height: 220px;
}

.knowledge-orbit-line.two {
  bottom: 8%;
  right: 18%;
  width: 240px;
  height: 140px;
}

.knowledge-orbit-face.face-a {
  top: 22px;
  left: 30px;
  width: 54px;
  height: 54px;
}

.knowledge-orbit-face.face-b {
  top: 38px;
  right: 150px;
  width: 48px;
  height: 48px;
}

.knowledge-orbit-face.face-c {
  right: 68px;
  bottom: 48px;
  width: 56px;
  height: 56px;
}

.knowledge-orbit-face.face-d {
  left: 180px;
  bottom: 34px;
  width: 44px;
  height: 44px;
}

html[dir="rtl"] .knowledge-feature-tag {
  left: auto;
  right: 18px;
}

html[dir="rtl"] .knowledge-feature-play {
  right: auto;
  left: 20px;
}

html[data-theme="light"] body.knowledge-page {
  background:
    radial-gradient(circle at 16% 0%, rgba(79, 134, 255, 0.12), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(129, 93, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #f6f9ff 0%, #f2f7ff 46%, #eef3fb 100%);
}

html[data-theme="light"] .knowledge-kicker,
html[data-theme="light"] .knowledge-review-eyebrow,
html[data-theme="light"] .knowledge-summary-kicker,
html[data-theme="light"] .knowledge-filter-chip,
html[data-theme="light"] .knowledge-summary-meta span {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.08);
  color: #51607a;
}

html[data-theme="light"] .knowledge-secondary-btn {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

html[data-theme="light"] .knowledge-stat-card,
html[data-theme="light"] .knowledge-review-block,
html[data-theme="light"] .knowledge-mini-card,
html[data-theme="light"] .knowledge-float-card {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .knowledge-stat-card,
html[data-theme="light"] .knowledge-review-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.98));
}

html[data-theme="light"] .knowledge-hero-stage {
  background:
    radial-gradient(circle at 50% 28%, rgba(91, 128, 255, 0.18), transparent 32%),
    radial-gradient(circle at 50% 76%, rgba(154, 90, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(242, 247, 255, 0.96), rgba(234, 240, 251, 0.98));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .knowledge-stage-core h2,
html[data-theme="light"] .knowledge-review-author h2,
html[data-theme="light"] .knowledge-mini-card h3,
html[data-theme="light"] .knowledge-stat-card strong {
  color: #0f172a;
}

html[data-theme="light"] .knowledge-stage-core p,
html[data-theme="light"] .knowledge-float-card span,
html[data-theme="light"] .knowledge-mini-card p {
  color: #5a6780;
}

html[data-theme="light"] .knowledge-float-card strong {
  color: #14223d;
}

@keyframes knowledgeFloat {
  0%, 100% {
    transform: translateY(0) rotate(var(--card-rotate, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--card-rotate, 0deg));
  }
}

.knowledge-float-card.card-a { --card-rotate: -11deg; }
.knowledge-float-card.card-b { --card-rotate: 11deg; }
.knowledge-float-card.card-c { --card-rotate: 8deg; }
.knowledge-float-card.card-d { --card-rotate: -9deg; }

@media (max-width: 1199.98px) {
  .knowledge-hero .knowledge-shell,
  .knowledge-review-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-hero-stage {
    min-height: 560px;
  }

  .knowledge-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .knowledge-main {
    padding-top: 18px;
  }

  .knowledge-title {
    max-width: none;
  }

  .knowledge-stats {
    grid-template-columns: 1fr;
  }

  .knowledge-review-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .knowledge-cta-card {
    padding: 32px 24px;
  }

  .knowledge-orbit-line.one,
  .knowledge-orbit-line.two {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .knowledge-shell {
    width: min(100% - 20px, 1180px);
  }

  .knowledge-hero {
    padding-top: 12px;
  }

  .knowledge-hero-stage {
    min-height: 480px;
    padding: 18px;
  }

  .knowledge-float-card {
    width: 138px;
    padding: 8px;
    border-radius: 20px;
  }

  .knowledge-float-card img {
    height: 110px;
    border-radius: 14px;
  }

  .knowledge-float-card.card-a {
    top: 26px;
    left: 12px;
  }

  .knowledge-float-card.card-b {
    top: 34px;
    right: 14px;
  }

  .knowledge-float-card.card-c {
    left: 20px;
    bottom: 70px;
  }

  .knowledge-float-card.card-d {
    right: 18px;
    bottom: 88px;
  }

  .knowledge-stage-avatars {
    display: none;
  }

  .knowledge-filter-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .knowledge-filter-wrap::-webkit-scrollbar {
    display: none;
  }

  .knowledge-review-block {
    padding: 18px;
    border-radius: 26px;
  }

  .knowledge-feature-card {
    min-height: 320px;
  }

  .knowledge-gallery-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-cta-copy h2 {
    font-size: 30px;
  }

  .knowledge-orbit-face.face-b,
  .knowledge-orbit-face.face-c,
  .knowledge-orbit-face.face-d {
    display: none;
  }
}
