/**
 * /neet/pages hub ONLY.
 * Loaded only from neet-lp/pages/index.blade.php.
 * Do not merge these rules into tpk-nlp.css.
 * Do not load this file on individual landing pages.
 */

/* ---- Search (hero) ---- */
#tpk-nlp.nlp-index-hub .nlp-index-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  max-width: 640px;
  margin: 0 0 4px;
}

#tpk-nlp.nlp-index-hub .nlp-index-search input[type="search"] {
  flex: 1 1 220px;
  box-sizing: border-box;
  height: 60px;
  min-height: 60px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #d5deef;
  border-radius: 8px;
  background: #ffffff;
  color: #192335;
  font-size: 15px;
  font-weight: 500;
  line-height: 60px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#tpk-nlp.nlp-index-hub .nlp-index-search input[type="search"]::-webkit-search-decoration,
#tpk-nlp.nlp-index-hub .nlp-index-search input[type="search"]::-webkit-search-cancel-button,
#tpk-nlp.nlp-index-hub .nlp-index-search input[type="search"]::-webkit-search-results-button,
#tpk-nlp.nlp-index-hub .nlp-index-search input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

#tpk-nlp.nlp-index-hub .nlp-index-search input[type="search"]:focus {
  border-color: #213069;
  box-shadow: 0 0 0 3px rgba(33, 48, 105, 0.12);
}

#tpk-nlp.nlp-index-hub .nlp-index-search .rbt-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-height: 60px;
  padding: 0 26px;
  margin: 0;
  line-height: 1;
}

/* ---- Jump to topic ---- */
#tpk-nlp.nlp-index-hub .nlp-index-jump {
  padding-top: 8px;
}

#tpk-nlp.nlp-index-hub .nlp-index-jump__label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b86;
}

#tpk-nlp.nlp-index-hub .nlp-index-jump__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#tpk-nlp.nlp-index-hub .nlp-index-jump__nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #d5deef;
  border-radius: 999px;
  background: #f5f8ff;
  color: #213069 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.3;
}

#tpk-nlp.nlp-index-hub .nlp-index-jump__nav a span {
  color: #5b6b86;
  font-weight: 600;
}

#tpk-nlp.nlp-index-hub .nlp-index-jump__nav a:hover {
  background: #213069;
  border-color: #213069;
  color: #ffffff !important;
}

#tpk-nlp.nlp-index-hub .nlp-index-jump__nav a:hover span {
  color: rgba(255, 255, 255, 0.85);
}

#tpk-nlp.nlp-index-hub .nlp-index-page-note {
  margin: 16px 0 0;
  max-width: 720px;
  padding: 12px 14px;
  border: 1px solid #e2e9f5;
  border-radius: 10px;
  background: #f7f9fd;
  color: #4c5a73;
  font-size: 14px;
  line-height: 1.55;
}

/* ---- Topic groups ---- */
#tpk-nlp.nlp-index-hub .nlp-index-group__head {
  margin-bottom: 22px;
  max-width: 720px;
}

#tpk-nlp.nlp-index-hub .nlp-index-group__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #192335;
  line-height: 1.25;
}

#tpk-nlp.nlp-index-hub .nlp-index-group__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4c5a73;
}

#tpk-nlp.nlp-index-hub .nlp-index-group__count {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b6b86;
}

#tpk-nlp.nlp-index-hub .nlp-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#tpk-nlp.nlp-index-hub .nlp-index-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid #d9e2f3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(25, 47, 89, 0.05);
  text-decoration: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#tpk-nlp.nlp-index-hub .nlp-index-card__thumb {
  display: block;
  margin: -22px -20px 2px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef8;
}

#tpk-nlp.nlp-index-hub .nlp-index-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tpk-nlp.nlp-index-hub .nlp-index-card:hover {
  border-color: #213069;
  box-shadow: 0 12px 28px rgba(33, 48, 105, 0.12);
  transform: translateY(-2px);
}

#tpk-nlp.nlp-index-hub .nlp-index-card__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #192335;
}

#tpk-nlp.nlp-index-hub .nlp-index-card__blurb {
  display: block;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.55;
  color: #52607a;
}

#tpk-nlp.nlp-index-hub .nlp-index-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #213069;
}

#tpk-nlp.nlp-index-hub .nlp-index-card:hover .nlp-index-card__cta {
  color: #0f1f4d;
}

#tpk-nlp.nlp-index-hub .nlp-index-more-wrap {
  margin-top: 18px;
  text-align: left;
}

#tpk-nlp.nlp-index-hub .nlp-index-clear-search {
  margin-top: 18px;
}

/* ---- Topic pager ---- */
#tpk-nlp.nlp-index-hub .nlp-index-pager__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #e2e9f5;
  border-radius: 12px;
  background: #f7f9fd;
}

#tpk-nlp.nlp-index-hub .nlp-index-pager__status {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #4c5a73;
}

#tpk-nlp.nlp-index-hub .nlp-index-pager__disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #e2e9f5;
  border-radius: 8px;
  background: #eef2f8;
  color: #8a97ad;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

/* ---- Footer CTA ---- */
#tpk-nlp.nlp-index-hub .nlp-index-footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a2b5c 0%, #213069 55%, #2d458a 100%);
  color: #ffffff;
}

#tpk-nlp.nlp-index-hub .nlp-index-footer-cta__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

#tpk-nlp.nlp-index-hub .nlp-index-footer-cta__text {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

#tpk-nlp.nlp-index-hub .nlp-index-footer-cta .rbt-btn.btn-border {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

@media (max-width: 991px) {
  #tpk-nlp.nlp-index-hub .nlp-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #tpk-nlp.nlp-index-hub .nlp-index-group__title {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  #tpk-nlp.nlp-index-hub .nlp-index-grid {
    grid-template-columns: 1fr;
  }

  #tpk-nlp.nlp-index-hub .nlp-index-search .rbt-btn {
    width: 100%;
  }

  #tpk-nlp.nlp-index-hub .nlp-index-footer-cta {
    padding: 22px 18px;
  }

  #tpk-nlp.nlp-index-hub .nlp-index-pager__row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
