/**
 * JEE Main hub — evergreen V7. Scoped under .rbl-jee-hub only.
 * Inherits global Outfit / tokens / header / footer. Do not edit tokens.css.
 */

.rbl-jee-hub {
  --jee-ink: var(--rbl-ink-strong, #142238);
  --jee-muted: var(--rbl-muted-readable, #4b5563);
  --jee-orange: var(--rbl-cta-fill, #c2410c);
  --jee-line: var(--rbl-border, #e5e7eb);
  color: var(--jee-ink);
}

.rbl-jee-hub .container {
  max-width: 1240px;
}

.rbl-jee-sprites {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.rbl-jee-ico {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.rbl-jee-ico--lg {
  width: 40px;
  height: 40px;
  stroke-width: 1.6;
}

.rbl-jee-ico--sm {
  width: 18px;
  height: 18px;
}

/* —— Hero —— */
.rbl-jee-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(117deg, #fffefd 8%, #edf7ff 65%, #f9f3e9 100%);
  border-bottom: 1px solid #eaeaf1;
}

.rbl-jee-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 100%, #f9ead9 0, transparent 55%);
  pointer-events: none;
}

.rbl-jee-hero__inner {
  position: relative;
  height: auto;
  padding-top: 2rem;
  padding-bottom: 1.25rem; /* ~20px content-driven close */
  isolation: isolate;
}

/* Accessible label — visually hidden (scoped; do not rely on missing global .sr-only) */
.rbl-jee-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rbl-jee-hero__copy {
  width: 54%;
  position: relative;
  z-index: 3;
}

.rbl-jee-breadcrumb {
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  color: #7f8a9a;
}

.rbl-jee-breadcrumb a {
  color: inherit;
}

.rbl-jee-eyebrow {
  margin: 0 0 0.55rem;
  color: #b74b1a;
  font-weight: 750;
  letter-spacing: 0.12em;
  font-size: 0.75rem; /* 12px — readability floor for uppercase labels */
  text-transform: uppercase;
}

.rbl-jee-h1 {
  font-family: var(--rbl-font-display, Outfit, system-ui, sans-serif);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.13;
  margin: 0 0 0.75rem;
  max-width: 18ch;
  color: var(--jee-ink);
}

.rbl-jee-h1 span {
  color: #d64f18;
}

.rbl-jee-h1 small {
  display: block;
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--jee-ink);
  margin-top: 0.3rem;
  font-weight: 700;
}

.rbl-jee-lead {
  margin: 0;
  max-width: 36rem;
  color: #5c6c7e;
  font-size: 0.95rem;
  line-height: 1.55;
}

.rbl-jee-hero__visual {
  position: absolute;
  z-index: 1;
  right: -1.5rem;
  top: 1.25rem;
  width: min(57%, 665px);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.rbl-jee-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  object-position: center right;
}

.rbl-jee-hero__search {
  position: relative;
  z-index: 3;
  width: 52%;
  margin-top: 1.4rem;
}

.rbl-jee-search {
  position: relative;
  height: 54px;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 13px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(56, 79, 104, 0.06);
  padding-left: 0.85rem;
  gap: 0.35rem;
  min-width: 0;
}

.rbl-jee-search__icon {
  color: #798598;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.rbl-jee-search__input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1 1 auto;
  background: transparent;
  color: var(--jee-ink);
  font-size: 0.875rem;
  min-height: 44px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.rbl-jee-search__input::-webkit-search-decoration,
.rbl-jee-search__input::-webkit-search-cancel-button,
.rbl-jee-search__input::-webkit-search-results-button,
.rbl-jee-search__input::-webkit-search-results-decoration {
  display: none;
}

.rbl-jee-search__input::placeholder {
  color: #8a96a6;
  opacity: 1;
}

.rbl-jee-search__btn {
  border-radius: 10px !important;
  height: 44px;
  margin-right: 5px;
  padding-inline: 1.35rem !important;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.rbl-jee-hero-links {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
  max-width: 40rem;
}

.rbl-jee-hero-links a {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dde5ee;
  border-radius: 9px;
  padding: 0.55rem 0.85rem;
  font-weight: 650;
  font-size: 0.8125rem; /* 13px supporting chips */
  color: var(--jee-ink);
  text-decoration: none;
}

.rbl-jee-hero-links a:hover,
.rbl-jee-hero-links a:focus-visible {
  border-color: #f4b28f;
  background: #fff;
  color: var(--jee-ink);
  text-decoration: none;
}

/* —— Sections —— */
.rbl-jee-section {
  padding: 2rem 0;
}

.rbl-jee-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.05rem;
}

.rbl-jee-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.75rem; /* 12px — readability floor for uppercase labels */
  letter-spacing: 0.12em;
  color: #b84a19;
  font-weight: 800;
  text-transform: uppercase;
}

.rbl-jee-section h2 {
  font-family: var(--rbl-font-display, Outfit, system-ui, sans-serif);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  font-weight: 780;
  margin: 0;
  color: var(--jee-ink);
}

.rbl-jee-section-lead {
  margin: 0.3rem 0 0;
  font-size: 0.875rem; /* 14px supporting paragraph */
  color: #697689;
}

.rbl-jee-mini-stat {
  margin: 0;
  text-align: right;
  font-size: 0.8125rem; /* 13px supporting meta */
  color: #697689;
  white-space: nowrap;
}

.rbl-jee-mini-stat strong {
  font-size: 1.35rem;
  color: var(--jee-ink);
  margin-right: 0.25rem;
}

/* Subject cards — acceptance criterion */
.rbl-jee-subjects {
  background: #fff;
  padding-top: 1.5rem; /* ~24px separation after hero */
  padding-bottom: 1.8rem;
}

.rbl-jee-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}

.rbl-jee-subject-card {
  border-radius: 17px;
  padding: 1.3rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 131px;
  position: relative;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--jee-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rbl-jee-subject-card:hover,
.rbl-jee-subject-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(24, 41, 65, 0.08);
  color: var(--jee-ink);
  text-decoration: none;
}

.rbl-jee-subject-card--physics {
  background: linear-gradient(130deg, #e9f6ff, #f7fbff);
  border-color: #d2e9fc;
}

.rbl-jee-subject-card--chemistry {
  background: linear-gradient(130deg, #e8f9f2, #f6fffa);
  border-color: #d6f2e5;
}

.rbl-jee-subject-card--maths {
  background: linear-gradient(130deg, #f3eeff, #f9f7ff);
  border-color: #e8defb;
}

.rbl-jee-subject-card--biology {
  background: linear-gradient(130deg, #eef9f2, #f8fffb);
  border-color: #c9ebd7;
}

.rbl-jee-subject-symbol {
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
  width: 69px;
  height: 69px;
  flex-shrink: 0;
}

.rbl-jee-subject-card--physics .rbl-jee-subject-symbol { color: #237bce; }
.rbl-jee-subject-card--chemistry .rbl-jee-subject-symbol { color: #0caa8c; }
.rbl-jee-subject-card--maths .rbl-jee-subject-symbol { color: #8751c9; }
.rbl-jee-subject-card--biology .rbl-jee-subject-symbol { color: #2D9F65; }

.rbl-jee-subject-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding-right: 1.25rem;
}

.rbl-jee-subject-text strong {
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 800;
}

.rbl-jee-subject-text small {
  font-size: 0.8125rem; /* 13px resource counts */
  color: #596779;
}

.rbl-jee-subject-text em,
.rbl-jee-subject-desc {
  font-style: normal;
  font-size: 0.8125rem; /* 13px subject card descriptions */
  color: #688199;
  line-height: 1.35;
}

.rbl-jee-subject-desc--short {
  display: none;
}

.rbl-jee-subject-arrow {
  position: absolute;
  right: 1.1rem;
  top: 1.2rem;
  font-size: 1.1rem;
  color: #6b7b8e;
}

/* Finder */
.rbl-jee-finder {
  padding-top: 0.35rem;
  padding-bottom: 1.85rem;
}

.rbl-jee-finder-panel {
  border-radius: 18px;
  background: var(--rbl-surface-warm, #fcf7f1);
  border: 1px solid #f8eee4;
  padding: 1.35rem 1.5rem;
}

.rbl-jee-finder-lead {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.rbl-jee-finder-icon {
  background: #fff;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #c44a16;
  flex-shrink: 0;
}

.rbl-jee-finder-lead h2 {
  font-size: 1.25rem;
}

.rbl-jee-finder-lead p {
  margin: 0.2rem 0 0;
  font-size: 0.875rem; /* 14px supporting paragraph */
  color: #697689;
}

.rbl-jee-finder-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 165px;
  gap: 0.65rem;
}

.rbl-jee-finder-form label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 9px;
  padding: 0.45rem 0.7rem;
  margin: 0;
}

.rbl-jee-finder-form label span {
  font-size: 0.75rem; /* 12px finder step labels */
  color: #8190a0;
  font-weight: 700;
}

.rbl-jee-finder-form select {
  width: 100%;
  outline: none;
  border: 0;
  color: #455469;
  background: transparent;
  font-size: 0.875rem; /* 14px finder dropdown values */
  padding: 0.3rem 0;
  min-height: 32px;
  line-height: 1.3;
}

.rbl-jee-finder-form .btn {
  margin: 0;
  height: auto;
  min-height: 48px;
  font-size: 0.875rem; /* 14px finder button floor */
  font-weight: 750;
}

.rbl-jee-finder-msg {
  margin: 0.6rem 0 0;
  padding: 0.5rem;
  color: #2e634b;
  font-size: 0.8125rem; /* 13px supporting */
}

/* Types */
.rbl-jee-types {
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.rbl-jee-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.rbl-jee-type-card {
  border: 1px solid #e5eaf0;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 0.55rem;
  background: #fff;
  min-height: 72px; /* room for 14px title + 13px count */
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: var(--jee-ink);
}

.rbl-jee-type-card:hover,
.rbl-jee-type-card:focus-visible {
  border-color: #f4b28f;
  background: #fffdfb;
  color: var(--jee-ink);
  text-decoration: none;
}

.rbl-jee-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  grid-row: span 2;
}

.rbl-jee-type-icon--orange { color: #c84a1c; background: #fff2eb; }
.rbl-jee-type-icon--blue { color: #267fcc; background: #edf7ff; }
.rbl-jee-type-icon--teal { color: #06977d; background: #eafaf6; }
.rbl-jee-type-icon--violet { color: #8454c4; background: #f6efff; }

.rbl-jee-type-card b {
  font-size: 0.875rem; /* 14px resource category titles */
  line-height: 1.3;
}

.rbl-jee-type-card small {
  font-size: 0.8125rem; /* 13px resource counts */
  color: #7b8897;
  align-self: start;
  line-height: 1.35;
}

.rbl-jee-more-types {
  display: block;
  font-size: 0.8125rem; /* 13px supporting link */
  color: #a84b26;
  margin-top: 0.75rem;
  text-align: right;
  text-decoration: none;
}

.rbl-jee-more-types:hover {
  color: var(--jee-orange);
}

/* Discover: chapters + library */
.rbl-jee-discover {
  background: #fafafa;
  padding-top: 1.9rem;
  padding-bottom: 2rem;
}

.rbl-jee-discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.rbl-jee-panel {
  background: #fff;
  padding: 1.35rem;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  min-width: 0;
}

.rbl-jee-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
  gap: 0.55rem;
}

.rbl-jee-panel-head h2 {
  font-size: 1.3rem;
}

.rbl-jee-panel-head a,
.rbl-jee-library-more {
  font-size: 0.8125rem; /* 13px supporting links */
  color: #b34720;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 650;
}

.rbl-jee-tabs,
.rbl-jee-library-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.rbl-jee-tab {
  font-size: 0.875rem; /* 14px tabs */
  border: 0;
  border-radius: 8px;
  background: #f4f6f9;
  color: #556577;
  padding: 0.55rem 0.85rem;
  min-height: 40px;
  line-height: 1.3;
}

.rbl-jee-tab.is-selected {
  background: #e8f2fd;
  color: #1b6db4;
  font-weight: 750;
}

.rbl-jee-tab:focus-visible {
  outline: 2px solid var(--rbl-focus, #1d4ed8);
  outline-offset: 2px;
}

.rbl-jee-chapter-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.rbl-jee-chapter-list a {
  border: 1px solid #e7eaf0;
  border-radius: 10px;
  padding: 0.8rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 66px;
  text-decoration: none;
  color: var(--jee-ink);
}

.rbl-jee-chapter-list a:hover,
.rbl-jee-chapter-list a:focus-visible {
  border-color: #c7d9ef;
  background: #fafcff;
  color: var(--jee-ink);
  text-decoration: none;
}

.rbl-jee-chapter-list a span {
  display: flex;
  font-weight: 500;
  font-size: 0.8125rem; /* 13px chapter counts */
  color: #9a7b67;
  margin-top: 0.3rem;
  justify-content: space-between;
  line-height: 1.35;
}

.rbl-jee-chapter-list a i {
  font-style: normal;
  color: #a3b0bc;
  font-size: 1rem;
}

.rbl-jee-resource-list {
  display: flex;
  flex-direction: column;
}

.rbl-jee-resource-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef0f3;
  text-decoration: none;
  color: var(--jee-ink);
}

.rbl-jee-resource-list a:first-child {
  padding-top: 0;
}

.rbl-jee-resource-list a:last-child {
  border-bottom: 0;
}

.rbl-jee-resource-list a:hover,
.rbl-jee-resource-list a:focus-visible {
  color: var(--jee-ink);
  text-decoration: none;
}

.rbl-jee-pdf-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff2eb;
  color: #c6461e;
  width: 34px;
  height: 39px;
  flex-shrink: 0;
}

.rbl-jee-resource-list a > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.rbl-jee-resource-list b {
  font-size: 0.875rem; /* 14px PDF titles */
  line-height: 1.35;
  font-weight: 700;
}

.rbl-jee-resource-list small {
  color: #8490a0;
  font-size: 0.8125rem; /* 13px PDF metadata */
  line-height: 1.35;
}

.rbl-jee-resource-list i {
  font-style: normal;
  color: #9aabb8;
}

.rbl-jee-library-more {
  display: block;
  margin-top: 0.75rem;
}

.rbl-jee-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--jee-muted);
}

/* Bottom */
.rbl-jee-bottom {
  padding-top: 1.85rem;
  padding-bottom: 1.85rem;
}

.rbl-jee-contribute {
  background: #fcf6ee;
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rbl-jee-contribute-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #c44d1d;
  flex-shrink: 0;
}

.rbl-jee-contribute h2 {
  font-size: 1.2rem;
  margin: 0;
}

.rbl-jee-contribute p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem; /* 13px supporting paragraph */
  color: #6b7280;
}

.rbl-jee-contribute .btn {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.875rem; /* 14px button floor */
  font-weight: 700;
}

.rbl-jee-about {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
}

.rbl-jee-about-main {
  max-width: 650px;
  flex: 1;
  min-width: 0;
}

.rbl-jee-fold {
  margin: 0 0 0.85rem;
  border: 0;
}

.rbl-jee-fold:last-child {
  margin-bottom: 0;
}

.rbl-jee-fold__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
}

.rbl-jee-fold__summary::-webkit-details-marker {
  display: none;
}

.rbl-jee-fold__title {
  font-family: var(--rbl-font-display, Outfit, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--jee-ink);
  line-height: 1.3;
}

/* Disclosure chevron — mobile only (desktop keeps prior non-accordion look) */
.rbl-jee-fold__summary::after {
  content: none;
}

@media (max-width: 760px) {
  .rbl-jee-fold__summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid #8a96a6;
    border-bottom: 1.5px solid #8a96a6;
    transform: rotate(45deg);
    margin-left: 0.15rem;
    transition: transform 0.15s ease;
    flex-shrink: 0;
  }

  .rbl-jee-fold[open] > .rbl-jee-fold__summary::after {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
  }
}

.rbl-jee-about-copy {
  font-size: 0.8125rem; /* 13px FAQ/about supporting copy */
  color: #6e7b8b;
  line-height: 1.55;
}

.rbl-jee-about-copy p {
  margin: 0 0 0.5rem;
}

.rbl-jee-about-copy p:last-child {
  margin-bottom: 0;
}

/* Keep howto h3 for SEO; summary is the visible mobile/desktop heading */
.rbl-jee-about-copy--howto .rbl-exam-hub-footer-block {
  margin-top: 0 !important;
}

.rbl-jee-about-copy--howto .rbl-exam-hub-footer-block > h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rbl-jee-about-copy--howto .rbl-exam-hub-howto {
  margin: 0;
  padding-left: 1.1rem;
}

.rbl-jee-about-copy--howto .rbl-exam-hub-howto li {
  margin-bottom: 0.25rem;
}

.rbl-jee-about-copy--howto .rbl-exam-hub-howto li:last-child {
  margin-bottom: 0;
}

.rbl-jee-faq {
  max-width: 380px;
  width: 100%;
}

.rbl-jee-faq .accordion-button {
  font-size: 0.875rem; /* 14px FAQ questions */
  font-weight: 700;
}

.rbl-jee-faq .accordion-body {
  font-size: 0.8125rem; /* 13px FAQ answers */
  color: #6e7b8b;
  line-height: 1.5;
}

/* Mid desktop: absolute art still OK, content-driven height */
@media (min-width: 901px) and (max-width: 1100px) {
  .rbl-jee-hero__visual { width: 50%; right: -0.5rem; top: 1.5rem; height: auto; max-height: 340px; }
  .rbl-jee-hero__img { max-height: 340px; }
  .rbl-jee-hero__copy { width: 55%; }
  .rbl-jee-hero__search { width: 52%; }
  .rbl-jee-h1 { font-size: 2.3rem; max-width: 16ch; }
  .rbl-jee-subject-card { padding: 1.15rem 0.95rem; }
  .rbl-jee-subject-symbol { width: 52px; height: 58px; }
  .rbl-jee-subject-text strong { font-size: 1.1rem; }
  .rbl-jee-subject-desc--full { display: none; }
  .rbl-jee-subject-desc--short { display: inline; }
  .rbl-jee-subject-desc { white-space: nowrap; }
  .rbl-jee-finder-form { grid-template-columns: repeat(3, 1fr) 125px; }
}

/*
 * Tablet / narrow desktop (~600–900): protect readable text area.
 * Illustration stays in-flow beside copy — no overlap with heading/search.
 */
@media (min-width: 761px) and (max-width: 900px) {
  .rbl-jee-hero__inner {
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    /* Visual only beside copy — do not span rows (avoids empty band under chips) */
    grid-template-areas:
      "copy visual"
      "search search"
      "links links";
    column-gap: 0.75rem;
    row-gap: 0.65rem;
    align-items: start;
    padding-top: 1.5rem;
    padding-bottom: 1.15rem;
  }

  .rbl-jee-hero__copy {
    grid-area: copy;
    width: 100%;
    max-width: none;
  }

  .rbl-jee-hero__search {
    grid-area: search;
    width: 100%;
    max-width: 36rem;
    margin-top: 0;
  }

  .rbl-jee-hero-links {
    grid-area: links;
    max-width: none;
    margin-top: 0;
  }

  .rbl-jee-hero__visual {
    grid-area: visual;
    position: relative;
    width: 100%;
    right: auto;
    top: auto;
    height: auto;
    max-height: 280px;
    align-self: start;
    justify-content: center;
  }

  .rbl-jee-hero__img {
    max-height: 300px;
    object-position: center;
  }

  .rbl-jee-h1 {
    font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.15rem);
    max-width: 18ch;
  }

  .rbl-jee-lead {
    font-size: 0.875rem;
  }

  .rbl-jee-subject-card { padding: 1.15rem 0.95rem; }
  .rbl-jee-subject-symbol { width: 52px; height: 58px; }
  .rbl-jee-subject-text strong { font-size: 1.1rem; }
  .rbl-jee-subject-desc--full { display: none; }
  .rbl-jee-subject-desc--short { display: inline; }
  .rbl-jee-subject-desc { white-space: nowrap; }
  .rbl-jee-finder-form { grid-template-columns: repeat(3, 1fr) 125px; }
}

@media (max-width: 760px) {
  .rbl-jee-hero {
    background: linear-gradient(180deg, #f2faff 0%, #eaf5ff 52%, #fff9f1 100%);
  }

  .rbl-jee-hero__inner {
    height: auto;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    display: flex;
    flex-direction: column;
  }

  .rbl-jee-hero__copy {
    width: 100%;
    order: 0;
  }

  .rbl-jee-breadcrumb { margin-bottom: 0.6rem; font-size: 0.75rem; }
  .rbl-jee-eyebrow { font-size: 0.75rem; margin-bottom: 0.4rem; }

  .rbl-jee-h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
    max-width: 20ch;
    margin: 0 0 0.55rem;
  }

  .rbl-jee-h1 small {
    font-size: clamp(1.05rem, 4.7vw, 1.35rem);
  }

  .rbl-jee-lead {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .rbl-jee-hero__visual {
    position: relative;
    order: 1;
    width: 100%;
    right: auto;
    top: auto;
    height: auto;
    max-height: 198px;
    margin: 0.1rem auto -0.25rem;
  }

  .rbl-jee-hero__img {
    width: 100%;
    max-height: 198px;
    object-fit: contain;
    object-position: center;
  }

  .rbl-jee-hero__search {
    order: 2;
    width: 100%;
    margin-top: 0.15rem;
  }

  .rbl-jee-search {
    height: 48px;
    border-radius: 10px;
    padding-left: 0.55rem;
    gap: 0.25rem;
  }

  .rbl-jee-search__icon {
    width: 18px;
    height: 18px;
  }

  .rbl-jee-search__input {
    font-size: 16px; /* match CBSE — avoid iOS zoom + keep readable */
    min-height: 40px;
  }

  .rbl-jee-search__btn {
    height: 38px;
    padding-inline: 0.7rem !important;
    font-size: 0.8125rem;
  }

  .rbl-jee-hero-links {
    display: none;
  }

  .rbl-jee-section { padding: 1.4rem 0; }

  /* Subject head: stack count under intro so 390/320 aren't squeezed */
  .rbl-jee-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .rbl-jee-section h2 { font-size: 1.3rem; }

  .rbl-jee-mini-stat {
    text-align: left;
    white-space: normal;
  }

  .rbl-jee-mini-stat strong { font-size: 1.05rem; }

  .rbl-jee-subjects { padding: 1.3rem 0 0.85rem; }

  .rbl-jee-subject-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .rbl-jee-subject-card {
    min-height: 65px;
    padding: 0.55rem 0.8rem;
    gap: 0.7rem;
    border-radius: 12px;
  }

  .rbl-jee-subject-symbol {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .rbl-jee-ico--lg { width: 30px; height: 30px; }
  .rbl-jee-subject-text strong { font-size: 1rem; }
  .rbl-jee-subject-text small { font-size: 0.8125rem; }
  .rbl-jee-subject-text em { display: none; }
  .rbl-jee-subject-arrow { top: 1rem; right: 1rem; }

  .rbl-jee-finder { padding: 0.2rem 0 1rem; }
  .rbl-jee-finder-panel { padding: 0.85rem; border-radius: 14px; }
  .rbl-jee-finder-form {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .rbl-jee-finder-form .btn {
    grid-column: span 2;
    min-height: 44px;
    font-size: 0.875rem;
  }

  .rbl-jee-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .rbl-jee-discover-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .rbl-jee-contribute {
    flex-wrap: wrap;
    padding: 0.8rem;
  }

  .rbl-jee-contribute .btn {
    margin-left: 0;
    width: 100%;
  }

  .rbl-jee-bottom {
    padding-top: 1.15rem;
    padding-bottom: 1.25rem;
  }

  .rbl-jee-about {
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .rbl-jee-fold {
    margin-bottom: 0.45rem;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
    padding: 0.55rem 0.7rem;
  }

  .rbl-jee-fold__summary {
    margin-bottom: 0;
  }

  .rbl-jee-fold[open] > .rbl-jee-fold__summary {
    margin-bottom: 0.45rem;
  }

  .rbl-jee-fold__title {
    font-size: 0.875rem;
  }

  .rbl-jee-about-copy {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .rbl-jee-about-copy p {
    margin-bottom: 0.35rem;
  }

  .rbl-jee-faq { max-width: none; }

  .rbl-jee-faq .accordion-button {
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
  }

  .rbl-jee-faq .accordion-body {
    padding: 0.55rem 0.85rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 359px) {
  .rbl-jee-h1 { font-size: 1.6rem; }
  .rbl-jee-h1 small { font-size: 1.05rem; }
  .rbl-jee-hero__visual { max-height: 165px; }
  .rbl-jee-hero__img { max-height: 165px; }

  .rbl-jee-search__btn {
    padding-inline: 0.55rem !important;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rbl-jee-subject-card {
    transition: none;
  }
}

/* —— NEET UG hub (additive): green wash + approved homepage hero WebPs. Orange CTAs unchanged. —— */
.rbl-neet-hub .rbl-jee-hero {
  background: linear-gradient(117deg, #fffefd 8%, #eef9f2 65%, #f9f3e9 100%);
}

.rbl-neet-hub .rbl-jee-hero::before {
  background:
    radial-gradient(ellipse at 82% 20%, rgba(45, 159, 101, 0.08) 0, transparent 52%),
    radial-gradient(ellipse at 20% 100%, #f9ead9 0, transparent 55%);
}

.rbl-neet-hub .rbl-jee-hero__copy { width: 54%; }
.rbl-neet-hub .rbl-jee-hero__search { width: 52%; }

/* Desktop: right-side absolute blend (transparent left fade on artwork). */
.rbl-neet-hub .rbl-neet-hero-visual {
  position: absolute;
  z-index: 1;
  right: -0.75rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: min(55%, 700px);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.rbl-neet-hub .rbl-neet-hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.rbl-neet-hub .rbl-neet-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: right center;
}

@media (min-width: 761px) and (max-width: 900px) {
  .rbl-neet-hub .rbl-jee-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "search" "links";
  }
  .rbl-neet-hub .rbl-jee-hero__copy,
  .rbl-neet-hub .rbl-jee-hero__search { width: 100%; }
  .rbl-neet-hub .rbl-neet-hero-visual {
    width: min(48%, 520px);
    max-height: 320px;
  }
}

@media (max-width: 767px) {
  .rbl-neet-hub .rbl-jee-hero {
    background: linear-gradient(180deg, #f3fbf6 0%, #eaf7ef 52%, #fff9f1 100%);
  }
  .rbl-neet-hub .rbl-jee-hero__copy,
  .rbl-neet-hub .rbl-jee-hero__search { width: 100%; }

  /* Mobile: reserved block after intro, before search (flex order from hub CSS). */
  .rbl-neet-hub .rbl-neet-hero-visual {
    position: relative;
    inset: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0.55rem 0 0.2rem;
    justify-content: center;
    order: 1;
  }

  .rbl-neet-hub .rbl-neet-hero-art {
    width: 100%;
    aspect-ratio: 720 / 405;
  }

  .rbl-neet-hub .rbl-neet-hero-img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 720 / 405;
    object-fit: contain;
    object-position: center;
  }

  .rbl-neet-hub .rbl-jee-hero__search { order: 2; }
  .rbl-neet-hub .rbl-jee-hero-links { order: 3; }
}
