/**
 * NEET App promotion banner — scoped to .tpk-feature-wrap only.
 * Loaded on /neet home page only (see neet/index.blade.php).
 */

.tpk-feature-wrap {
  container-type: inline-size;
  container-name: tpkappsec;
  margin: 32px 0;
  font-family: "Euclid Circular A", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  line-height: 1.5;
}

.tpk-feature-wrap *,
.tpk-feature-wrap *::before,
.tpk-feature-wrap *::after {
  box-sizing: border-box;
}

.tpk-feature-wrap .tpk-feature,
.tpk-feature-wrap section.tpk-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.tpk-feature-wrap .tpk-feature__visual {
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}

.tpk-feature-wrap .tpk-feature__visual a {
  display: block;
}

.tpk-feature-wrap .tpk-feature__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.tpk-feature-wrap .tpk-feature__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.tpk-feature-wrap .tpk-feature__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
}

.tpk-feature-wrap .tpk-feature__grad {
  background: linear-gradient(90deg, #059669, #2f57ef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tpk-feature-wrap .tpk-feature__lead {
  margin: 0;
  font-size: 15px;
  color: #64748b;
}

.tpk-feature-wrap .tpk-feature__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tpk-feature-wrap .tpk-feature__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.tpk-feature-wrap .tpk-feature__item--mint {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.tpk-feature-wrap .tpk-feature__item--orange {
  background: #fff7ed;
  border-color: #fed7aa;
}

.tpk-feature-wrap .tpk-feature__ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  color: #2f57ef;
  border: 1px solid #e2e8f0;
}

.tpk-feature-wrap .tpk-feature__item--mint .tpk-feature__ico {
  color: #059669;
}

.tpk-feature-wrap .tpk-feature__item--orange .tpk-feature__ico {
  color: #ea580c;
}

.tpk-feature-wrap .tpk-feature__txt {
  min-width: 0;
}

.tpk-feature-wrap .tpk-feature__ttl {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.tpk-feature-wrap .tpk-feature__dsc {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.tpk-feature-wrap .tpk-feature__foot {
  margin-top: 4px;
}

.tpk-feature-wrap a.tpk-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, #2f57ef, #5950d9);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tpk-feature-wrap a.tpk-feature__cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.tpk-feature-wrap a.tpk-feature__cta svg {
  flex-shrink: 0;
}

.tpk-feature-wrap.not-prose p,
.tpk-feature-wrap.not-prose div[role="heading"] {
  margin-bottom: 0;
}

.tpk-feature-wrap.not-prose a:not(.tpk-feature__cta) {
  text-decoration: none;
}

/* ── Responsive tiers ─────────────────────────────────────────────
   Wide:   image | panel side-by-side, 2-col feature grid
   Medium: stack image above panel (avoids squeezed right column)
   Narrow: stack + single-column feature cards
   ───────────────────────────────────────────────────────────── */

/* Medium: stack main layout before right column gets too narrow */
@container tpkappsec (max-width: 920px) {
  .tpk-feature-wrap .tpk-feature,
  .tpk-feature-wrap section.tpk-feature {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 28px;
    border-radius: 22px;
  }

  .tpk-feature-wrap .tpk-feature__visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .tpk-feature-wrap .tpk-feature__title {
    font-size: 26px !important;
  }
}

/* Narrow / mobile: single-column feature cards + natural image height */
@container tpkappsec (max-width: 560px) {
  .tpk-feature-wrap .tpk-feature,
  .tpk-feature-wrap section.tpk-feature {
    padding: 16px;
    gap: 18px;
    border-radius: 18px;
  }

  .tpk-feature-wrap .tpk-feature__visual {
    max-width: 100%;
    border-radius: 16px;
  }

  .tpk-feature-wrap .tpk-feature__title {
    font-size: 21px !important;
    line-height: 1.2 !important;
  }

  .tpk-feature-wrap .tpk-feature__lead {
    font-size: 13px !important;
  }

  .tpk-feature-wrap .tpk-feature__grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .tpk-feature-wrap a.tpk-feature__cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Viewport fallback (sidebar reduces content width before container queries fire) */
@media (max-width: 1200px) {
  .tpk-feature-wrap .tpk-feature,
  .tpk-feature-wrap section.tpk-feature {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 28px;
  }

  .tpk-feature-wrap .tpk-feature__visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .tpk-feature-wrap {
    margin: 16px 0;
  }

  .tpk-feature-wrap .tpk-feature,
  .tpk-feature-wrap section.tpk-feature {
    padding: 16px !important;
    gap: 18px;
    border-radius: 18px;
  }

  .tpk-feature-wrap .tpk-feature__visual {
    max-width: 100% !important;
    border-radius: 16px;
  }

  .tpk-feature-wrap .tpk-feature__img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .tpk-feature-wrap .tpk-feature__grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .tpk-feature-wrap .tpk-feature__title {
    font-size: 21px !important;
    line-height: 1.2 !important;
  }

  .tpk-feature-wrap .tpk-feature__lead {
    font-size: 13px !important;
  }

  .tpk-feature-wrap a.tpk-feature__cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Wide side-by-side only: square frame, image contained inside */
@container tpkappsec (min-width: 921px) {
  .tpk-feature-wrap .tpk-feature__visual {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
  }

  .tpk-feature-wrap .tpk-feature__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media (min-width: 1201px) {
  .tpk-feature-wrap .tpk-feature__visual {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
  }

  .tpk-feature-wrap .tpk-feature__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
