.didyouknow-shell {
  padding: 42px 0 78px;
  background: #f4f7fb;
}

.didyouknow-wrap {
  max-width: 760px;   /* was 1180 or 860 */
  margin: 0 auto;
}

.didyouknow-header {
  text-align: center;
  margin-bottom: 26px;
}

.didyouknow-header h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 12px;
  color: #1f2937;
  font-weight: 800;
  letter-spacing: -0.02em;;
}

.didyouknow-header p {
  font-size: 0.95rem;
  color: #667085;
  margin: 0;
}



.share-wrap {
  margin: 28px auto 40px;
  text-align: center;
}

.share-panel[hidden] {
  display: none !important;
}

.share-panel-icons {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-icon-btn,
.share-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f7;
  color: #1f2430;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f7;
  color: #1f2430;
  font-weight: 700;
  cursor: pointer;
}

.share-feedback {
  margin-top: 10px;
  font-size: 14px;
  color: #5b6475;
}







.category-bar {
  max-width: 560px;
  margin: 0 auto 26px;

  display: flex;
  flex-wrap: nowrap;        /* 🚨 prevent wrapping */
  justify-content: flex-start;
  gap: 10px;

  overflow-x: auto;         /* allow scroll instead */
  padding-bottom: 6px;

  scrollbar-width: none;    /* hide scrollbar (Firefox) */
}

.category-bar::-webkit-scrollbar {
  display: none;            /* hide scrollbar (Safari/Chrome) */
}

.category-btn {
  border: 1.5px solid #d9dee8;
  background: #ffffff;
  color: #475467;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.category-btn:hover {
  transform: translateY(-1px);
  border-color: #cfd6e4;
  background: #fbfcfe;
}

.category-btn.active {
  background: linear-gradient(135deg, #5b5ce9, #4f46e5);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
}

.fact-card {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 30px;
  padding: 28px 22px 20px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.06);
}

.question {
  font-size: clamp(1.30rem, 1.8vw, 1.7rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.choices {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.choice-btn {
  width: 100%;
  border: 1.5px solid #e4e7ec;
  background: #ffffff;
  color: #344054;
  border-radius: 20px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.choice-btn:hover {
  transform: translateY(-1px);
  border-color: #d5dbe6;
  background: #fbfcff;
}

.choice-btn.selected {
  background: #eef2ff;
  border-color: #818cf8;
  color: #3730a3;
}

.choice-btn.correct {
  background: #ecfdf3;
  border-color: #6ce9a6;
  color: #067647;
}

.choice-btn.wrong {
  background: #fef3f2;
  border-color: #fda29b;
  color: #b42318;
}

.choice-btn:disabled {
  cursor: default;
}

.reveal-btn,
.next-btn {
  border: none;
  border-radius: 16px;
  padding: 14px 22px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reveal-btn {
  background: linear-gradient(135deg, #5b5ce9, #4f46e5);
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.16);
}

.reveal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.answer-box {
  margin-top: 10px;
  padding: 18px 18px 6px;
  border-top: 1px solid #eef1f5;
}

.answer-line {
  font-size: 0.95rem;;
  color: #1f2937;
  margin-bottom: 10px;
}

.fact-line {
  font-size: 0.9rem;
  color: #667085;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 18px;
}

.next-btn {
  background: #f2f4f7;
  color: #344054;
  border: 1px solid #e4e7ec;
}

.next-btn:hover {
  background: #eaecf0;
  transform: translateY(-1px);
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .didyouknow-shell {
    padding: 28px 0 54px;
  }

  .didyouknow-header {
    margin-bottom: 20px;
  }

  .didyouknow-header p {
    font-size: 1rem;
  }

  .category-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    scrollbar-width: none;
  }

  .category-bar::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    flex: 0 0 auto;
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  .fact-card {
    padding: 28px 18px 22px;
    border-radius: 24px;
  }

  .question {
    font-size: 1.85rem;
    margin-bottom: 22px;
  }

  .choice-btn {
    padding: 16px 14px;
    font-size: 1rem;
    border-radius: 18px;
  }

  .reveal-btn,
  .next-btn {
    width: 100%;
  }
}
