/* Reduce banner waste: tighter sections */
.units-section{
  padding: 18px 0 26px;
}

/* Section header */
.units-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}

.units-header__left{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.units-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;

  background: var(--ppl-deep-sea-green);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  border: 1px solid rgba(228,238,240,0.18);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.units-pill i{
  color: var(--ppl-wild-sand);
}

.units-sub{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;

  color: var(--ppl-deep-sea-green);
  font-size: 12.5px;
  font-weight: 700;
}

/* Empty states */
.units-empty{
  color: rgba(228,238,240,0.85);
  margin-top: 12px;
}
.units-emptyTitle{
  color: var(--ppl-wild-sand);
  font-weight: 900;
}

/* =========================
   Unit Card — image + wild-sand strip + bold theme
   ========================= */
.unit-card{
  width: 100%;
  max-width: 420px;
  height: 210px;
  margin: 0 auto;
  perspective: 1400px;
}

.unit-card__inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2,.8,.2,1);
  border-radius: 18px;
  will-change: transform;
}

/* Faces */
.unit-card__front,
.unit-card__back{
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(228,238,240,0.18);
  box-shadow: 0 18px 44px rgba(0,0,0,0.34);

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Use class-based flipping (JS toggles this) */
.unit-card.is-flipped .unit-card__inner{
  transform: rotateY(180deg);
}

/* tiny scale on flip for premium feel */
.unit-card.is-flipped{
  transform: translateZ(0);
}

/* FRONT */
.unit-card__front{
  background: #0f1b21; /* darker than mirage for separation */
}

.unit-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .35s ease;
}

/* Slight zoom on hover */
@media (hover:hover){
  .unit-card:hover .unit-card__img{
    transform: scale(1.08);
  }
}

/* Fallback (flat colors only, no gradients) */
.unit-card__img--fallback{
  width: 100%;
  height: 100%;
  background: #0f1b21;
  position: relative;
}
.unit-card__img--fallback::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(7,80,86,0.45); /* green overlay */
}

/* Calm bright images for text readability */
.unit-card__front::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(22,35,42,0.25);
  pointer-events:none;
}

/* Center label strip */
.unit-card__label{
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);

  background: var(--ppl-wild-sand);
  color: var(--ppl-mirage);

  border-radius: 14px;
  padding: 12px 12px;
  border: 2px solid rgba(22,35,42,0.20);

  box-shadow: 0 20px 46px rgba(0,0,0,0.40);
  text-align: center;
}

.unit-card__title{
  display: block;
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Corner badge */
.unit-card__badge{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: var(--ppl-blaze-orange);
  color: #fff;
  border: 2px solid rgba(228,238,240,0.20);
  box-shadow: 0 18px 34px rgba(0,0,0,0.35);
}

/* BACK */
.unit-card__back{
  transform: rotateY(180deg);
  background: #0f1b21;
}

/* Back inner: bold, clean, readable */
.unit-card__backInner{
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.unit-card__backTitle{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: var(--ppl-wild-sand);
}

.unit-card__desc{
  font-size: 13px;
  line-height: 1.35;
  color: rgba(228,238,240,0.85);
  max-height: 74px;
  overflow: hidden;
}

/* CTA button */
.ppl-btn.ppl-btn--primary{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 1000;

  background: var(--ppl-deep-sea-green);
  color: #ffffff;

  border: 2px solid rgba(228,238,240,0.18);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  box-shadow: 0 18px 34px rgba(0,0,0,0.30);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ppl-btn.ppl-btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.40);
}

/* Accent hover alternative if you want */
.ppl-btn.ppl-btn--primary:active{
  transform: translateY(0) scale(0.99);
}

/* Hint */
.unit-card__hint{
  margin: 0;
  font-size: 12px;
  color: rgba(228,238,240,0.65);
}

/* Tighter grid spacing */
.row.justify-content-center > [class*="col-"]{
  margin-bottom: 14px !important;
}

/* =========================
   Units Search — simple elegant filter
   ========================= */
.units-search-wrap{
  background: #fffbf6;
  padding: 20px 0 12px;
}

.units-search--filter{
  width: min(680px, calc(100% - 28px));
  min-height: 56px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;
  border-radius: 18px;

  background: #ffffff;
  border: 1px solid #e2e8f4;
  box-shadow: 0 14px 34px rgba(16, 45, 108, 0.08);

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.units-search--filter:focus-within{
  border-color: rgba(28, 70, 165, 0.55);
  box-shadow:
    0 18px 42px rgba(16, 45, 108, 0.12),
    0 0 0 4px rgba(28, 70, 165, 0.08);
  transform: translateY(-1px);
}

.units-search__icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;

  display: grid;
  place-items: center;
  flex: 0 0 auto;

  background: #eef3ff;
  color: #1c46a5;
  font-size: 0.95rem;
}

.units-search__input{
  flex: 1;
  min-width: 0;
  height: 40px;

  background: transparent;
  border: 0;
  outline: none;

  color: #102d6c;
  font-size: 0.95rem;
  font-weight: 800;

  padding: 0 4px;
}

.units-search__input::placeholder{
  color: #8a93a6;
  font-weight: 700;
}

.units-search__clear{
  width: 38px;
  height: 38px;
  border-radius: 13px;

  display: grid;
  place-items: center;
  flex: 0 0 auto;

  background: #fff4ec;
  color: #c2691f;
  border: 1px solid #fde0c6;

  cursor: pointer;
  transition:
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    transform .16s ease;
}

.units-search__clear:hover,
.units-search__clear:focus-visible{
  background: #ec9652;
  border-color: #ec9652;
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.units-search__count{
  min-width: max-content;

  color: #1c46a5;
  font-size: 0.78rem;
  font-weight: 950;

  padding: 0 6px;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 560px){
  .units-search-wrap{
    padding: 16px 0 10px;
  }

  .units-search--filter{
    width: calc(100% - 24px);
    min-height: 52px;
    border-radius: 16px;
    padding: 7px 8px;
    gap: 7px;
  }

  .units-search__icon{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.86rem;
  }

  .units-search__input{
    height: 36px;
    font-size: 0.88rem;
  }

  .units-search__clear{
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .units-search__count{
    display: none;
  }
}

/* Dark mode */
html[data-theme="dark"] .units-search-wrap{
  background: #0b1428;
}

html[data-theme="dark"] .units-search--filter{
  background: #132244;
  border-color: rgba(219, 230, 251, 0.16);
  box-shadow: none;
}

html[data-theme="dark"] .units-search--filter:focus-within{
  border-color: rgba(220, 244, 101, 0.42);
  box-shadow: 0 0 0 4px rgba(220, 244, 101, 0.08);
}

html[data-theme="dark"] .units-search__icon{
  background: #0f1e3d;
  color: #dcf465;
}

html[data-theme="dark"] .units-search__input{
  color: #ffffff;
}

html[data-theme="dark"] .units-search__input::placeholder{
  color: rgba(219, 230, 251, 0.58);
}

html[data-theme="dark"] .units-search__clear{
  background: rgba(255,255,255,0.06);
  border-color: rgba(219,230,251,0.16);
  color: #c6cfec;
}

html[data-theme="dark"] .units-search__clear:hover,
html[data-theme="dark"] .units-search__clear:focus-visible{
  background: #dcf465;
  border-color: #dcf465;
  color: #102d6c;
}

html[data-theme="dark"] .units-search__count{
  color: #dcf465;
}

/* Grid filter state */
.unit-col.is-filtered-out{
  display: none !important;
}

/* Optional: a gentle “no results” block you can add later */
.units-no-results{
  margin: 14px auto 0;
  text-align: center;
  color: rgba(228,238,240,0.85);
  font-weight: 800;
}

/* Section-level empty message */
.units-section-empty{
  margin-top: 14px;
  padding: 14px;
  text-align: center;

  border-radius: 14px;
  background: rgba(228,238,240,0.06);
  border: 1px solid rgba(228,238,240,0.16);

  color: var(--ppl-deep-sea-green);
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* Global no-results */
.units-global-empty{
  margin: 18px auto 0;
  text-align: center;
  color: var(--ppl-deep-sea-green);
  font-weight: 1000;
}

/* =========================
   Study Page Dark Tune
   ========================= */
html[data-theme="dark"] .units-sub{
  color: rgba(232,241,245,0.76);
}

html[data-theme="dark"] .units-search--filter{
  background: rgba(22,35,42,0.82);
  border-color: rgba(232,241,245,0.16);
}

html[data-theme="dark"] .units-search__clear{
  background: rgba(232,241,245,0.08);
  color: rgba(232,241,245,0.86);
  border-color: rgba(232,241,245,0.24);
}

html[data-theme="dark"] .units-search__count{
  color: rgba(232,241,245,0.82);
}

html[data-theme="dark"] .unit-card__label{
  background: #1a2a33;
  color: rgba(232,241,245,0.92);
  border-color: rgba(232,241,245,0.22);
}

html[data-theme="dark"] .units-section-empty{
  background: rgba(22,35,42,0.72);
  border-color: rgba(232,241,245,0.16);
  color: rgba(232,241,245,0.88);
}

html[data-theme="dark"] .units-empty,
html[data-theme="dark"] .units-emptyTitle,
html[data-theme="dark"] .units-global-empty{
  color: rgba(232,241,245,0.88);
}

/* Container for study notes hero */
/* =========================
   Mockup Study Notes Hero
   ========================= */
.ppl-studyHero{
  align-items:end;
  background:#102d6c;
  color:#ffffff;
  display:grid;
  gap:24px;
  grid-template-columns:minmax(0, 1fr) minmax(240px, 360px);
  margin:0 calc(50% - 50vw) 18px;
  min-height:320px;
  padding:48px max(22px, calc((100vw - 1120px) / 2)) 38px;
}

.ppl-studyHero__copy{
  max-width:760px;
}

.ppl-studyHero__eyebrow{
  align-items:center;
  background:#dcf465;
  border-radius:999px;
  color:#102d6c;
  display:inline-flex;
  font-size:12px;
  font-weight:950;
  gap:8px;
  letter-spacing:.08em;
  padding:7px 12px;
  text-transform:uppercase;
}

.ppl-studyHero h1{
  color:#ffffff;
  font-size:clamp(40px, 6vw, 72px);
  font-weight:950;
  letter-spacing:0;
  line-height:.94;
  margin:16px 0 12px;
  max-width:820px;
}

.ppl-studyHero p{
  color:#c6cfec;
  font-size:15px;
  font-weight:650;
  line-height:1.6;
  margin:0;
  max-width:660px;
}

.ppl-studyHero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.ppl-studyHero__btn{
  align-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  color:#ffffff;
  display:inline-flex;
  font:inherit;
  font-size:13px;
  font-weight:950;
  gap:8px;
  min-height:42px;
  padding:10px 16px;
  text-decoration:none;
}

.ppl-studyHero__btn--accent{
  background:#dcf465;
  border-color:#dcf465;
  color:#102d6c;
}

.ppl-studyHero__btn:hover,
.ppl-studyHero__btn:focus-visible{
  color:#ffffff;
  outline:3px solid rgba(220,244,101,.28);
  outline-offset:3px;
}

.ppl-studyHero__btn--accent:hover,
.ppl-studyHero__btn--accent:focus-visible{
  color:#102d6c;
}

.ppl-studyHero__panel{
  display:grid;
  gap:12px;
}

.ppl-studyHero__tile{
  align-items:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:16px;
  display:flex;
  gap:12px;
  min-height:74px;
  padding:14px;
}

.ppl-studyHero__tile i{
  border-radius:12px;
  display:grid;
  height:42px;
  place-items:center;
  width:42px;
}

.ppl-studyHero__tile span{
  font-size:15px;
  font-weight:950;
}

.ppl-studyHero__tile--blue{ background:#1b3d86; }
.ppl-studyHero__tile--blue i{ background:#aecbff; color:#1c46a5; }
.ppl-studyHero__tile--lime{ background:#f7fbd9; color:#102d6c; }
.ppl-studyHero__tile--lime i{ background:#dcf465; color:#102d6c; }
.ppl-studyHero__tile--orange{ background:#fdecdc; color:#102d6c; }
.ppl-studyHero__tile--orange i{ background:#ec9652; color:#ffffff; }

.units-search-wrap{
  padding:16px 0 18px;
}

.units-search--filter{
  background:#ffffff;
  border:1px solid #ece7de;
  box-shadow:none;
}

.units-search__input{
  background:#eef3ff;
  border-color:#dbe6fb;
  color:#102d6c;
}

.units-search__input::placeholder{
  color:#7a7f8c;
}

.units-search__count{
  color:#1c46a5;
}

html[data-theme="dark"] .ppl-studyHero{
  background:#08152f;
}

html[data-theme="dark"] .units-search--filter{
  background:#132244;
  border-color:rgba(219,230,251,.16);
}

html[data-theme="dark"] .units-search__input{
  background:#0f1e3d;
  border-color:rgba(219,230,251,.16);
  color:#ffffff;
}

@media (max-width: 900px){
  .ppl-studyHero{
    grid-template-columns:1fr;
    min-height:0;
  }

  .ppl-studyHero__panel{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

/* Container for direct-open study cards */
/* =========================
   Study Cards Without Flip
   ========================= */
.unit-card{
  max-width:420px;
  perspective:none;
}

.unit-card__inner{
  transform:none !important;
}

.unit-card__back{
  display:none !important;
}

.unit-card__front{
  position:relative;
}

.unit-card__footer{
  align-items:center;
  background:rgba(16,45,108,.92);
  bottom:14px;
  border-radius:999px;
  color:#ffffff;
  display:inline-flex;
  font-size:12px;
  font-weight:900;
  gap:8px;
  left:14px;
  min-height:34px;
  padding:8px 12px;
  position:absolute;
}

.unit-card__footer i{
  color:#dcf465;
}

html[data-theme="dark"] .unit-card__footer{
  background:rgba(8,21,47,.92);
}

/* Container for backend study search */
/* =========================
   Study Search Results
   ========================= */
.study-searchResults{
  margin:12px auto 0;
  max-width:880px;
}

.study-searchResults__list{
  background:#ffffff;
  border:1px solid #ece7de;
  border-radius:20px;
  box-shadow:0 18px 40px rgba(16,45,108,.08);
  display:grid;
  overflow:hidden;
}

.study-searchResults__item{
  align-items:start;
  border-top:1px solid #eef2f8;
  color:#102d6c;
  display:grid;
  gap:14px;
  grid-template-columns:auto minmax(0, 1fr) auto;
  padding:16px 18px;
  text-decoration:none;
}

.study-searchResults__item:first-child{
  border-top:0;
}

.study-searchResults__item:hover,
.study-searchResults__item:focus-visible{
  background:#f7f9ff;
  color:#102d6c;
}

.study-searchResults__kind{
  border-radius:999px;
  display:inline-flex;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  min-height:28px;
  padding:6px 10px;
  text-transform:uppercase;
}

.study-searchResults__kind--unit{
  background:#dcf465;
  color:#102d6c;
}

.study-searchResults__kind--topic{
  background:#eef3ff;
  color:#1c46a5;
}

.study-searchResults__body{
  min-width:0;
}

.study-searchResults__body strong{
  color:#102d6c;
  display:block;
  font-size:15px;
  font-weight:950;
}

.study-searchResults__body small,
.study-searchResults__body p{
  color:#6a7184;
  display:block;
  font-size:13px;
  font-weight:650;
  margin:4px 0 0;
}

.study-searchResults__access{
  color:#1c46a5;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}

html[data-theme="dark"] .study-searchResults__list{
  background:#132244;
  border-color:rgba(219,230,251,.16);
}

html[data-theme="dark"] .study-searchResults__item{
  border-top-color:rgba(219,230,251,.12);
}

html[data-theme="dark"] .study-searchResults__item:hover,
html[data-theme="dark"] .study-searchResults__item:focus-visible{
  background:#0f1e3d;
}

html[data-theme="dark"] .study-searchResults__body strong,
html[data-theme="dark"] .study-searchResults__access{
  color:#ffffff;
}

html[data-theme="dark"] .study-searchResults__body small,
html[data-theme="dark"] .study-searchResults__body p{
  color:#c6cfec;
}

/* Container for study tool strip */
/* =========================
   Study Tool Strip
   ========================= */
.ppl-studyTools{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  margin:16px auto 0;
}

.ppl-studyTool{
  align-items:center;
  background:#ffffff;
  border:1px solid #ece7de;
  border-radius:16px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  color:#102d6c;
  display:flex;
  gap:12px;
  min-height:76px;
  padding:14px 16px;
  text-decoration:none;
}

.ppl-studyTool i{
  align-items:center;
  border-radius:12px;
  display:grid;
  flex:none;
  font-size:1rem;
  height:38px;
  justify-items:center;
  width:38px;
}

.ppl-studyTool span{
  color:#16232a;
  font-size:1rem;
  font-weight:1000;
}

.ppl-studyTool--blue i{ background:#dbe6fb; color:#1c46a5; }
.ppl-studyTool--orange i{ background:#fde7d2; color:#c66c1e; }
.ppl-studyTool--peri i{ background:#ded8fb; color:#5641b7; }
.ppl-studyTool--lime i{ background:#eef7bf; color:#7f8b19; }

html[data-theme="dark"] .ppl-studyTool{
  background:#132244;
  border-color:rgba(219,230,251,.14);
  box-shadow:none;
}

html[data-theme="dark"] .ppl-studyTool span{
  color:#ffffff;
}

@media (max-width: 640px){
  .study-searchResults__item{
    grid-template-columns:1fr;
  }

  .study-searchResults__access{
    white-space:normal;
  }

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

@media (max-width: 640px){
  .ppl-studyHero{
    padding:34px 20px 30px;
  }

  .ppl-studyHero h1{
    font-size:42px;
  }

  .ppl-studyHero__panel{
    grid-template-columns:1fr;
  }
}
/* Container for refreshed study card content */
/* =========================
   Study Card Front Polish
   ========================= */
.unit-card__front{
  align-items:flex-end;
  display:flex;
  padding:18px;
}

.unit-card__front::after{
  background:linear-gradient(180deg, rgba(15,27,33,0.16) 0%, rgba(15,27,33,0.84) 100%);
}

.unit-card__label{
  display:flex;
  flex-direction:column;
  gap:10px;
  left:auto;
  right:auto;
  top:auto;
  transform:none;
  width:100%;
  z-index:2;
  text-align:left;
}

.unit-card__summary{
  color:rgba(22,35,42,0.78);
  display:-webkit-box;
  font-size:.88rem;
  font-weight:700;
  line-height:1.45;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.unit-card__footer{
  align-items:center;
  background:none;
  bottom:auto;
  color:var(--ppl-mirage);
  display:flex;
  font-size:.82rem;
  font-weight:850;
  flex-wrap:wrap;
  gap:10px 14px;
  justify-content:space-between;
  left:auto;
  min-height:0;
  padding:0;
  position:static;
  width:100%;
}

.unit-card__footer span{
  align-items:center;
  display:inline-flex;
  gap:8px;
}

.unit-card__footer i{
  color:#1c46a5;
}

.unit-card__footerCta{
  color:var(--ppl-deep-sea-green);
  font-weight:900;
}

.study-searchResults__empty{
  background:#fff;
  border:1px solid rgba(16,24,40,.08);
  border-radius:18px;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  padding:18px 18px 16px;
}

.study-searchResults__empty strong{
  color:var(--ppl-mirage);
  display:block;
  font-size:.95rem;
  margin-bottom:4px;
}

.study-searchResults__empty p{
  color:rgba(22,35,42,.68);
  font-size:.86rem;
  font-weight:600;
  margin:0;
}

html[data-theme="dark"] .unit-card__summary{
  color:rgba(232,241,245,0.72);
}

html[data-theme="dark"] .unit-card__footer{
  color:#ffffff;
}

html[data-theme="dark"] .unit-card__footer i{
  color:#d9ff4f;
}

html[data-theme="dark"] .unit-card__footerCta{
  color:#d9ff4f;
}

html[data-theme="dark"] .study-searchResults__empty{
  background:#132244;
  border-color:rgba(219,230,251,.12);
}

html[data-theme="dark"] .study-searchResults__empty strong{
  color:#ffffff;
}

html[data-theme="dark"] .study-searchResults__empty p{
  color:rgba(219,230,251,.74);
}

@media (max-width: 760px){
  .unit-card{
    height:228px;
  }

  .unit-card__front{
    padding:14px;
  }

  .unit-card__label{
    padding:14px;
  }

  .unit-card__footer{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Container for final study page polish */
/* =========================
   Study Page Current Design
   ========================= */
body:has(.ppl-studyHero) .main-area{
  margin-top:0 !important;
  padding-top:0;
}

body:has(.ppl-studyHero) .navbar,
body:has(.ppl-studyHero) .navbar-top{
  border-bottom-color:#102d6c;
  box-shadow:none;
}

.ppl-studyHero{
  background:#102d6c;
  border-radius:0;
  box-shadow:none;
  color:#ffffff;
  margin:0;
  padding:54px max(24px, calc((100vw - 1180px) / 2)) 46px;
}

.ppl-studyHero h1{
  color:#ffffff;
  font-size:clamp(38px, 6vw, 72px);
  letter-spacing:0;
}

.ppl-studyHero p{
  color:#dbe6fb;
  max-width:650px;
}

.ppl-studyHero__eyebrow{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.22);
  color:#dcf465;
}

.ppl-studyHero__btn{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.26);
  color:#ffffff;
}

.ppl-studyHero__btn--accent{
  background:#dcf465;
  border-color:#dcf465;
  color:#102d6c;
}

.ppl-studyHero__panel{
  align-self:stretch;
}

.ppl-studyHero__tile{
  border:1px solid rgba(255,255,255,.14);
  box-shadow:none;
}

.ppl-studyAdminTools{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  margin:18px auto 0;
  max-width:1180px;
  padding:0 24px;
}

.ppl-studyAdminTools__item{
  align-items:center;
  background:#ffffff;
  border:1px solid #e2e8f4;
  border-radius:14px;
  color:#102d6c;
  display:flex;
  gap:10px;
  min-height:50px;
  padding:10px 12px;
  text-decoration:none;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ppl-studyAdminTools__item i{
  align-items:center;
  background:#eef3ff;
  border-radius:10px;
  color:#1c46a5;
  display:grid;
  flex:none;
  height:30px;
  justify-items:center;
  width:30px;
}

.ppl-studyAdminTools__item span{
  font-size:12.5px;
  font-weight:900;
}

.ppl-studyAdminTools__item:hover,
.ppl-studyAdminTools__item:focus-visible{
  border-color:#1c46a5;
  box-shadow:0 12px 30px rgba(16,45,108,.1);
  color:#1c46a5;
  transform:translateY(-2px);
}

.units-search-wrap{
  background:#fffbf6;
  padding:22px 0 10px;
}

.ppl-studyTools{
  gap:14px;
}

.ppl-studyTool{
  border-color:#e2e8f4;
  border-radius:14px;
  min-height:74px;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ppl-studyTool:hover,
.ppl-studyTool:focus-visible{
  border-color:#1c46a5;
  box-shadow:0 14px 30px rgba(16,45,108,.1);
  transform:translateY(-2px);
}

.ppl-studyTool i{
  font-size:1.05rem;
}

.units-section{
  background:#fffbf6;
  padding:28px 0 34px;
}

.units-header{
  margin:0 0 18px;
}

.units-pill{
  box-shadow:none;
  letter-spacing:0;
}

.units-section--preclinical .units-pill,
.units-section:nth-of-type(3n + 1) .units-pill{
  background:#102d6c;
  color:#ffffff;
}

.units-section--clinical .units-pill,
.units-section:nth-of-type(3n + 2) .units-pill{
  background:#dcf465;
  color:#102d6c;
}

.units-section--applied .units-pill,
.units-section:nth-of-type(3n) .units-pill{
  background:#ec9652;
  color:#ffffff;
}

.unit-card{
  background:#ffffff;
  border:1px solid #ece7de;
  border-radius:18px;
  box-shadow:0 12px 30px rgba(16,45,108,.07);
  color:#14213d;
  display:block;
  height:276px;
  max-width:420px;
  overflow:hidden;
  perspective:none;
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.unit-card:hover,
.unit-card:focus-visible{
  border-color:#1c46a5;
  box-shadow:0 18px 38px rgba(16,45,108,.14);
  color:#14213d;
  transform:translateY(-4px);
}

.unit-card__inner{
  border-radius:inherit;
  height:100%;
  position:relative;
  transform:none !important;
  transform-style:flat;
}

.unit-card__front{
  align-items:flex-end;
  background:#ffffff;
  border:0;
  border-radius:inherit;
  box-shadow:none;
  display:flex;
  inset:0;
  overflow:hidden;
  padding:18px;
  position:absolute;
}

.unit-card__back{
  display:none !important;
}

.unit-card__front::after{
  background:rgba(16,45,108,.18);
}

.unit-card__img,
.unit-card__img--fallback{
  height:100%;
  inset:0;
  object-fit:cover;
  position:absolute;
  width:100%;
}

.unit-card__img--fallback{
  background:#dbe6fb;
}

.unit-card__img--fallback::before{
  background:#aecbff;
}

.unit-card__label{
  background:#ffffff;
  border:1px solid rgba(16,45,108,.09);
  border-radius:14px;
  box-shadow:0 16px 36px rgba(16,45,108,.16);
  color:#14213d;
  gap:8px;
  padding:15px;
  position:relative;
  text-align:left;
  z-index:2;
}

.unit-card__title{
  color:#102d6c;
  font-size:1.02rem;
  letter-spacing:0;
}

.unit-card__summary{
  color:#4b5563;
  font-size:.84rem;
  font-weight:700;
}

.unit-card__footer{
  justify-content:flex-start;
}

.unit-card__footerCta{
  background:#102d6c;
  border-radius:999px;
  color:#ffffff;
  display:inline-flex;
  padding:7px 11px;
}

.unit-card__badge{
  background:#dcf465;
  border:0;
  box-shadow:0 10px 22px rgba(16,45,108,.18);
  color:#102d6c;
}

.units-section--clinical .unit-card__badge,
.units-section:nth-of-type(3n + 2) .unit-card__badge{
  background:#aecbff;
  color:#1c46a5;
}

.units-section--applied .unit-card__badge,
.units-section:nth-of-type(3n) .unit-card__badge{
  background:#ec9652;
  color:#ffffff;
}

/* Container for study tutorial carousel */
/* =========================
   Study Mini Tutorial Carousel
   ========================= */
.ppl-miniModal__panel{
  max-width:460px;
  padding:20px;
}

.ppl-miniModal__head{
  align-items:flex-start;
  display:flex;
  gap:12px;
  padding-right:34px;
}

.ppl-miniModal__headIcon{
  align-items:center;
  background:#aecbff;
  border-radius:13px;
  color:#1c46a5;
  display:grid;
  flex:none;
  height:44px;
  justify-items:center;
  width:44px;
}

.ppl-miniModal__badge{
  background:transparent;
  border:0;
  color:#1c46a5;
  padding:0;
}

.ppl-miniModal h2{
  margin:2px 0 0;
}

.ppl-miniModal__viewport{
  border:1px solid #ece7de;
  border-radius:16px;
  margin-top:16px;
  overflow:hidden;
}

.ppl-miniModal__track{
  display:flex;
  transition:transform .3s cubic-bezier(.4,.2,.2,1);
  will-change:transform;
}

.ppl-miniModal__slide{
  background:#ffffff;
  flex:0 0 100%;
  min-width:100%;
}

.ppl-miniModal__art{
  align-items:center;
  color:#102d6c;
  display:grid;
  height:174px;
  justify-items:center;
  position:relative;
}

.ppl-miniModal__art i{
  font-size:56px;
}

.ppl-miniModal__art--blue{ background:#aecbff; }
.ppl-miniModal__art--lime{ background:#dcf465; }
.ppl-miniModal__art--orange{ background:#fdecdc; }
.ppl-miniModal__art--peri{ background:#c0c8fb; }

.ppl-miniModal__step,
.ppl-miniModal__count{
  border-radius:999px;
  font-size:11px;
  font-weight:1000;
  padding:5px 10px;
  position:absolute;
  top:14px;
}

.ppl-miniModal__step{
  background:#ffffff;
  color:#1c46a5;
  left:14px;
  text-transform:uppercase;
}

.ppl-miniModal__count{
  background:#102d6c;
  color:#ffffff;
  right:14px;
}

.ppl-miniModal__body{
  display:grid;
  gap:6px;
  padding:18px 20px 20px;
}

.ppl-miniModal__body b{
  color:#102d6c;
  font-size:1rem;
  font-weight:1000;
}

.ppl-miniModal__body span{
  color:#2a3550;
  font-size:.88rem;
  font-weight:650;
  line-height:1.55;
}

.ppl-miniModal__nav{
  align-items:center;
  display:flex;
  justify-content:space-between;
  margin-top:14px;
}

.ppl-miniModal__arrow{
  align-items:center;
  background:#eef3ff;
  border:0;
  border-radius:999px;
  color:#102d6c;
  display:grid;
  height:38px;
  justify-items:center;
  width:38px;
}

.ppl-miniModal__arrow:disabled{
  cursor:default;
  opacity:.38;
}

.ppl-miniModal__dots{
  align-items:center;
  display:flex;
  gap:7px;
}

.ppl-miniModal__dot{
  background:#dbe6fb;
  border:0;
  border-radius:999px;
  height:8px;
  padding:0;
  transition:width .18s ease, background .18s ease;
  width:8px;
}

.ppl-miniModal__dot.is-active{
  background:#1c46a5;
  width:24px;
}

html[data-theme="dark"] body:has(.ppl-studyHero) .navbar,
html[data-theme="dark"] body:has(.ppl-studyHero) .navbar-top{
  border-bottom-color:#08152f;
}

html[data-theme="dark"] .ppl-studyHero{
  background:#08152f;
}

html[data-theme="dark"] .units-search-wrap,
html[data-theme="dark"] .units-section{
  background:#0b1428;
}

html[data-theme="dark"] .ppl-studyAdminTools__item,
html[data-theme="dark"] .unit-card,
html[data-theme="dark"] .unit-card__label,
html[data-theme="dark"] .ppl-miniModal__slide{
  background:#132244;
  border-color:rgba(219,230,251,.15);
  color:#ffffff;
}

html[data-theme="dark"] .unit-card__title,
html[data-theme="dark"] .ppl-studyAdminTools__item,
html[data-theme="dark"] .ppl-miniModal__body b{
  color:#ffffff;
}

html[data-theme="dark"] .unit-card__summary,
html[data-theme="dark"] .ppl-miniModal__body span{
  color:#c6cfec;
}

html[data-theme="dark"] .unit-card__footerCta{
  background:#dcf465;
  color:#102d6c;
}

html[data-theme="dark"] .ppl-miniModal__viewport{
  border-color:rgba(219,230,251,.15);
}

@media (max-width: 1100px){
  .ppl-studyAdminTools{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px){
  .ppl-studyHero{
    padding:38px 20px 34px;
  }

  .ppl-studyHero__panel{
    grid-template-columns:1fr;
  }

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

@media (max-width: 620px){
  .ppl-studyAdminTools{
    grid-template-columns:1fr;
    padding:0 16px;
  }

  .ppl-studyHero h1{
    font-size:38px;
  }

  .ppl-studyHero__actions,
  .ppl-studyTools{
    grid-template-columns:1fr;
  }

  .unit-card{
    height:246px;
  }
}

/* Container for final study tutorial corrections */
/* =========================
   Study Tutorial Screenshot Carousel
   ========================= */
.ppl-miniModal__panel{
  border-radius:18px;
  max-width:520px;
  padding:18px;
  width:min(520px, calc(100vw - 28px));
}

.ppl-miniModal__headIcon{
  height:40px;
  width:40px;
}

.ppl-miniModal h2{
  color:#102d6c;
  font-size:24px;
  line-height:1.1;
}

.ppl-miniModal__viewport{
  border-radius:16px;
  margin-top:14px;
}

.ppl-miniModal__art{
  height:168px;
}

.ppl-miniModal__art i{
  font-size:48px;
}

.ppl-miniModal__body{
  background:#ffffff;
  min-height:92px;
  padding:16px 18px 18px;
}

.ppl-miniModal__body b{
  font-size:17px;
}

.ppl-miniModal__body span{
  font-size:13px;
}

.ppl-miniModal__arrow{
  border:1px solid #dbe6fb;
  display:inline-flex;
  justify-content:center;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}

.ppl-miniModal__arrow:not(:disabled):hover,
.ppl-miniModal__arrow:not(:disabled):focus-visible{
  background:#1c46a5;
  color:#ffffff;
  transform:translateY(-1px);
}

.ppl-miniModal__foot{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

.ppl-miniModal__foot .ppl-btn{
  border-radius:12px;
  justify-content:center;
  min-width:112px;
}

html[data-theme="dark"] .ppl-miniModal h2{
  color:#ffffff;
}

html[data-theme="dark"] .ppl-miniModal__body{
  background:#132244;
}

@media (max-width:640px){
  .ppl-miniModal__panel{
    padding:14px;
  }

  .ppl-miniModal__art{
    height:148px;
  }
}

/* Container for final study landing polish */
/* =========================
   Study Landing Final Pass
   =========================
   Keeps the existing Django links and JS hooks, but makes the page read like
   the mockup: wide hero, compact tools, clean searchable cards, and reliable
   mobile/dark-mode behaviour.
*/
body:has(.ppl-studyHero) .main-area{
  background:#fffbf6;
  padding-top:0;
}

.ppl-studyHero{
  align-items:center;
  background:#102d6c;
  border-top:0;
  grid-template-columns:minmax(0, 1.3fr) minmax(260px, .7fr);
  margin:-1px calc(50% - 50vw) 0;
  min-height:340px;
  padding:54px max(20px, calc((100vw - 1180px) / 2)) 44px;
}

.ppl-studyHero h1{ max-width:760px; }
.ppl-studyHero__panel{ align-self:center; }
.ppl-studyHero__tile{ box-shadow:0 14px 34px rgba(8,21,47,.18); }

.units-search-wrap{
  background:#fffbf6;
  padding:22px 0 8px;
}

.units-search-wrap .container,
.units-section .container{ max-width:1180px; }

.units-search--filter{
  border-radius:14px;
  max-width:720px;
  min-height:58px;
  padding:8px 10px;
}

.units-search__icon,
.units-search__clear{ border-radius:10px; }

.units-search__input{
  border-radius:10px;
  font-size:.95rem;
  min-height:40px;
}

.ppl-studyTools,
.ppl-studyAdminTools{ max-width:1180px; }

.ppl-studyTools{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  margin:18px auto 10px;
}

.ppl-studyTool{
  align-items:center;
  background:#ffffff;
  border:1px solid #dbe6fb;
  border-radius:14px;
  color:#102d6c;
  display:flex;
  gap:10px;
  min-height:62px;
  padding:14px;
  text-decoration:none;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ppl-studyTool:hover,
.ppl-studyTool:focus-visible{
  border-color:#1c46a5;
  box-shadow:0 14px 34px rgba(16,45,108,.12);
  color:#102d6c;
  transform:translateY(-2px);
}

.ppl-studyTool i{
  align-items:center;
  border-radius:11px;
  display:grid;
  flex:0 0 auto;
  height:38px;
  justify-items:center;
  width:38px;
}

.ppl-studyTool span{ font-weight:950; }
.ppl-studyTool--blue i{ background:#aecbff; color:#1c46a5; }
.ppl-studyTool--orange i{ background:#fdecdc; color:#c2691f; }
.ppl-studyTool--peri i{ background:#c0c8fb; color:#4b3fb0; }
.ppl-studyTool--lime i{ background:#dcf465; color:#102d6c; }

.ppl-studyAdminTools{
  background:#ffffff;
  border:1px solid #ece7de;
  border-radius:16px;
  display:grid;
  gap:10px;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  margin:22px auto 0;
  padding:12px;
}

.ppl-studyAdminTools__item{
  border-radius:12px;
  justify-content:center;
  min-height:54px;
}

.units-section{ padding:22px 0 12px; }
.units-header{ margin-bottom:14px; }

.units-pill{
  background:#102d6c;
  border:0;
  box-shadow:none;
  color:#ffffff;
}

.units-section .row.justify-content-center{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  margin-left:0;
  margin-right:0;
}

.unit-col{
  margin:0 !important;
  max-width:none;
  padding:0 !important;
  width:auto;
}

.unit-card{
  border-radius:16px;
  display:block;
  height:240px;
  max-width:none;
  text-decoration:none;
}

.unit-card__front{
  background:#ffffff;
  border:1px solid #dbe6fb;
  border-radius:16px;
  box-shadow:0 10px 26px rgba(16,45,108,.08);
}

.unit-card__front::after{
  background:linear-gradient(180deg, rgba(16,45,108,0) 0%, rgba(16,45,108,.72) 100%);
}

.unit-card__img,
.unit-card__img--fallback{ height:100%; }

.unit-card__label{
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  color:#ffffff;
  left:18px;
  padding:0;
  right:18px;
  text-align:left;
  top:auto;
  bottom:18px;
  transform:none;
  z-index:2;
}

.unit-card__title{
  color:#ffffff;
  font-size:1.15rem;
  font-weight:1000;
}

.unit-card__summary{
  color:#dbe6fb;
  display:-webkit-box;
  font-size:.82rem;
  font-weight:700;
  line-height:1.45;
  margin-top:7px;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.unit-card__footer{
  background:#dcf465;
  color:#102d6c;
  left:0;
  margin-top:12px;
  position:relative;
  width:max-content;
}

.unit-card__footerCta{ color:#102d6c; }

.unit-card__badge{
  background:#aecbff;
  border:0;
  box-shadow:none;
  color:#1c46a5;
}

.study-searchResults{ max-width:860px; }
.ppl-miniModal__panel{ max-width:440px; }
.ppl-miniModal__art{ height:176px; }

html[data-theme="dark"] body:has(.ppl-studyHero) .main-area,
html[data-theme="dark"] .units-search-wrap{ background:#0b1428; }

html[data-theme="dark"] .ppl-studyAdminTools,
html[data-theme="dark"] .ppl-studyTool,
html[data-theme="dark"] .unit-card__front{
  background:#132244;
  border-color:rgba(219,230,251,.16);
}

html[data-theme="dark"] .ppl-studyTool,
html[data-theme="dark"] .ppl-studyTool:hover,
html[data-theme="dark"] .ppl-studyTool:focus-visible{ color:#ffffff; }

html[data-theme="dark"] .units-pill{ background:#1a2f5b; }

@media (max-width:1100px){
  .units-section .row.justify-content-center{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .ppl-studyTools,
  .ppl-studyAdminTools{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

@media (max-width:760px){
  .ppl-studyHero{
    grid-template-columns:1fr;
    min-height:0;
    padding:36px 16px 30px;
  }

  .ppl-studyHero__panel{ grid-template-columns:1fr; }

  .units-section .row.justify-content-center,
  .ppl-studyTools,
  .ppl-studyAdminTools{ grid-template-columns:1fr; }

  .unit-card{ height:210px; }

  .ppl-studyAdminTools{
    margin-left:12px;
    margin-right:12px;
  }
}

/* =========================
   Study Tool Mobile Compact Bar
   =========================
   Keeps the study shortcuts visible on phones without turning five tools into five tall rows.
*/
@media (max-width:760px){
  .ppl-studyTools{
    display:grid !important;
    gap:7px !important;
    grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
    margin:12px auto 4px !important;
    max-width:100% !important;
  }

  .ppl-studyTool{
    align-items:center !important;
    border-radius:12px !important;
    flex-direction:column !important;
    gap:5px !important;
    justify-content:center !important;
    min-height:58px !important;
    padding:8px 4px !important;
    text-align:center !important;
  }

  .ppl-studyTool i{
    border-radius:10px !important;
    font-size:.85rem !important;
    height:30px !important;
    width:30px !important;
  }

  .ppl-studyTool span{
    display:block !important;
    font-size:clamp(.62rem, 2.7vw, .78rem) !important;
    line-height:1.05 !important;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

@media (max-width:380px){
  .ppl-studyTools{ gap:5px !important; }
  .ppl-studyTool{
    min-height:52px !important;
    padding:7px 2px !important;
  }
  .ppl-studyTool i{
    height:28px !important;
    width:28px !important;
  }
  .ppl-studyTool span{ font-size:.62rem !important; }
}


/* =========================================================
   FINAL SIMPLE UNITS CARDS
   =========================================================
   HTML stays unchanged. These rules intentionally hide the image,
   summary, CTA footer, and badge so each card shows only the unit name.
*/
.units-section{
  background:
    radial-gradient(circle at top left, rgba(174,203,255,0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(220,244,101,0.18), transparent 32%),
    #fffbf6 !important;
  padding: clamp(26px, 4vw, 46px) 0 !important;
}

.units-section + .units-section{
  padding-top: clamp(18px, 3vw, 34px) !important;
}

.units-section .container{
  max-width: 1180px;
}

.units-header{
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 22px !important;
  text-align: center;
}

.units-header__left{
  justify-content: center !important;
}

.units-pill{
  background: #102d6c !important;
  border: 1px solid rgba(16,45,108,0.10) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(16,45,108,0.10) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: clamp(0.86rem, 1.4vw, 1rem) !important;
  font-weight: 950 !important;
  gap: 9px !important;
  letter-spacing: 0 !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
}

.units-pill i{
  color: #dcf465 !important;
  font-size: 0.95em;
}

.units-section--clinical .units-pill,
.units-section:nth-of-type(3n + 2) .units-pill{
  background: #dcf465 !important;
  color: #102d6c !important;
}

.units-section--clinical .units-pill i,
.units-section:nth-of-type(3n + 2) .units-pill i{
  color: #102d6c !important;
}

.units-section--applied .units-pill,
.units-section:nth-of-type(3n) .units-pill{
  background: #ec9652 !important;
  color: #ffffff !important;
}

.units-section--applied .units-pill i,
.units-section:nth-of-type(3n) .units-pill i{
  color: #ffffff !important;
}

/* Use the existing Bootstrap row as a clean CSS grid. */
.units-section .row.justify-content-center{
  align-items: stretch !important;
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  justify-content: initial !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.unit-col{
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: auto !important;
}

/* Simple name-only unit card */
.unit-card{
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1px solid #dbe6fb !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(16,45,108,0.07) !important;
  color: #102d6c !important;
  display: flex !important;
  height: auto !important;
  min-height: 112px !important;
  max-width: none !important;
  overflow: hidden !important;
  perspective: none !important;
  position: relative !important;
  text-decoration: none !important;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease !important;
  width: 100% !important;
}

.unit-card::before{
  background: #102d6c;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: height 160ms ease, background-color 160ms ease;
  z-index: 2;
}

.units-section--clinical .unit-card::before,
.units-section:nth-of-type(3n + 2) .unit-card::before{
  background: #dcf465;
}

.units-section--applied .unit-card::before,
.units-section:nth-of-type(3n) .unit-card::before{
  background: #ec9652;
}

.unit-card:hover,
.unit-card:focus-visible{
  background: #ffffff !important;
  border-color: #1c46a5 !important;
  box-shadow: 0 18px 42px rgba(16,45,108,0.14) !important;
  color: #102d6c !important;
  outline: none !important;
  transform: translateY(-4px) !important;
}

.unit-card:hover::before,
.unit-card:focus-visible::before{
  height: 7px;
}

/* Flatten the old image-card internals. */
.unit-card__inner,
.unit-card__front{
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  display: grid !important;
  height: 100% !important;
  inset: auto !important;
  min-height: inherit !important;
  overflow: visible !important;
  padding: 20px 18px 18px !important;
  place-items: center !important;
  position: relative !important;
  transform: none !important;
  width: 100% !important;
}

.unit-card__front::after{
  display: none !important;
}

/* Hide everything except the unit name. */
.unit-card__img,
.unit-card__img--fallback,
.unit-card__summary,
.unit-card__footer,
.unit-card__badge,
.unit-card__back{
  display: none !important;
}

.unit-card__label{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  display: grid !important;
  gap: 0 !important;
  inset: auto !important;
  padding: 0 !important;
  position: static !important;
  text-align: center !important;
  transform: none !important;
  width: 100% !important;
  z-index: 3 !important;
}

.unit-card__title{
  color: #102d6c !important;
  display: -webkit-box !important;
  font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
  font-weight: 950 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.22 !important;
  margin: 0 auto !important;
  max-width: 20ch !important;
  overflow: hidden !important;
  text-align: center !important;
  text-wrap: balance;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.unit-card:focus-visible{
  box-shadow:
    0 0 0 4px rgba(42,100,197,0.18),
    0 18px 42px rgba(16,45,108,0.14) !important;
}

/* Empty states should match the cleaner section. */
.units-empty,
.units-emptyTitle,
.units-global-empty{
  color: #102d6c !important;
}

.units-section-empty{
  background: #ffffff !important;
  border: 1px solid #dbe6fb !important;
  color: #102d6c !important;
}

/* Dark mode */
html[data-theme="dark"] .units-section{
  background:
    radial-gradient(circle at top left, rgba(42,100,197,0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(220,244,101,0.10), transparent 32%),
    #0b1428 !important;
}

html[data-theme="dark"] .unit-card{
  background: #132244 !important;
  border-color: rgba(219,230,251,0.16) !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .unit-card:hover,
html[data-theme="dark"] .unit-card:focus-visible{
  border-color: rgba(220,244,101,0.55) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,0.24) !important;
}

html[data-theme="dark"] .unit-card__title{
  color: #ffffff !important;
}

html[data-theme="dark"] .units-empty,
html[data-theme="dark"] .units-emptyTitle,
html[data-theme="dark"] .units-global-empty{
  color: #f5f7ff !important;
}

html[data-theme="dark"] .units-section-empty{
  background: #132244 !important;
  border-color: rgba(219,230,251,0.16) !important;
  color: #ffffff !important;
}

/* Responsive card grid */
@media (max-width: 1100px){
  .units-section .row.justify-content-center{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px){
  .units-section{
    padding: 24px 0 28px !important;
  }

  .units-header{
    margin-bottom: 16px !important;
  }

  .units-section .row.justify-content-center{
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .unit-card{
    border-radius: 15px !important;
    min-height: 96px !important;
  }

  .unit-card__inner,
  .unit-card__front{
    padding: 18px 12px 14px !important;
  }

  .unit-card__title{
    font-size: 0.94rem !important;
    max-width: 16ch !important;
  }
}

@media (max-width: 420px){
  .units-section .row.justify-content-center{
    grid-template-columns: 1fr !important;
  }

  .unit-card{
    min-height: 82px !important;
  }

  .unit-card__title{
    max-width: 26ch !important;
  }
}

/* =========================================================
   FINAL FAMILIAR STUDY HERO SEARCH BAR
   =========================================================
   Keeps the existing HTML. Makes the search feel like the familiar
   Google-style search bar, removes the extra gradients, and hides
   the hero feature panel on mobile.
*/

/* Remove the decorative gradients previously added to the units area. */
.units-section{
  background: #fffbf6 !important;
}

html[data-theme="dark"] .units-section{
  background: #0b1428 !important;
}

/* Keep the hero clean and solid. */
.ppl-studyHero{
  background: #102d6c !important;
}

html[data-theme="dark"] .ppl-studyHero{
  background: #08152f !important;
}

/* Let the search bar sit naturally under the hero copy. */
.ppl-studyHero__actions{
  display: block !important;
  margin-top: 24px !important;
  width: 100% !important;
}

/* Google-style familiar search bar */
.ppl-studyHero .units-search--filter,
.units-search--filter{
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #dfe1e5 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  display: flex !important;
  gap: 0 !important;
  height: 52px !important;
  margin: 0 !important;
  max-width: 640px !important;
  min-height: 0 !important;
  padding: 0 8px 0 16px !important;
  position: relative !important;
  transform: none !important;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease !important;
  width: min(640px, 100%) !important;
}

.ppl-studyHero .units-search--filter:hover,
.units-search--filter:hover,
.ppl-studyHero .units-search--filter:focus-within,
.units-search--filter:focus-within{
  border-color: transparent !important;
  box-shadow:
    0 1px 6px rgba(32, 33, 36, 0.28),
    0 2px 10px rgba(16, 45, 108, 0.10) !important;
  transform: none !important;
}

/* Search icon should feel familiar: grey icon, no colored chip. */
.ppl-studyHero .units-search__icon,
.units-search__icon{
  background: transparent !important;
  border: 0 !important;
  color: #9aa0a6 !important;
  display: grid !important;
  flex: 0 0 38px !important;
  font-size: 0.95rem !important;
  height: 100% !important;
  place-items: center !important;
  width: 38px !important;
}

/* Plain input, no inner box. */
.ppl-studyHero .units-search__input,
.units-search__input{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #202124 !important;
  flex: 1 1 auto !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  height: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  outline: none !important;
  padding: 0 10px 0 2px !important;
}

.ppl-studyHero .units-search__input::placeholder,
.units-search__input::placeholder{
  color: #80868b !important;
  font-weight: 500 !important;
}

/* Clear button: simple icon button, not a colored action. */
.ppl-studyHero .units-search__clear,
.units-search__clear{
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid #dadce0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #70757a !important;
  cursor: pointer !important;
  display: inline-flex !important;
  flex: 0 0 42px !important;
  height: 28px !important;
  justify-content: center !important;
  margin-left: 2px !important;
  padding: 0 !important;
  transform: none !important;
  transition:
    color 140ms ease,
    background-color 140ms ease !important;
  width: 42px !important;
}

.ppl-studyHero .units-search__clear:hover,
.ppl-studyHero .units-search__clear:focus-visible,
.units-search__clear:hover,
.units-search__clear:focus-visible{
  background: transparent !important;
  border-left-color: #dadce0 !important;
  color: #202124 !important;
  outline: none !important;
  transform: none !important;
}

/* Count is useful, but it should not dominate the search bar. */
.ppl-studyHero .units-search__count,
.units-search__count{
  color: #5f6368 !important;
  flex: 0 0 auto !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
  padding: 0 10px 0 6px !important;
  white-space: nowrap !important;
}

/* Dark mode version of the same familiar shape. */
html[data-theme="dark"] .ppl-studyHero .units-search--filter,
html[data-theme="dark"] .units-search--filter{
  background: #ffffff !important;
  border-color: #dfe1e5 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .ppl-studyHero .units-search--filter:hover,
html[data-theme="dark"] .units-search--filter:hover,
html[data-theme="dark"] .ppl-studyHero .units-search--filter:focus-within,
html[data-theme="dark"] .units-search--filter:focus-within{
  border-color: transparent !important;
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.32),
    0 2px 10px rgba(0, 0, 0, 0.20) !important;
}

html[data-theme="dark"] .ppl-studyHero .units-search__icon,
html[data-theme="dark"] .units-search__icon{
  background: transparent !important;
  color: #9aa0a6 !important;
}

html[data-theme="dark"] .ppl-studyHero .units-search__input,
html[data-theme="dark"] .units-search__input{
  background: transparent !important;
  color: #202124 !important;
}

html[data-theme="dark"] .ppl-studyHero .units-search__input::placeholder,
html[data-theme="dark"] .units-search__input::placeholder{
  color: #80868b !important;
}

html[data-theme="dark"] .ppl-studyHero .units-search__clear,
html[data-theme="dark"] .units-search__clear{
  background: transparent !important;
  border-left-color: #dadce0 !important;
  color: #70757a !important;
}

html[data-theme="dark"] .ppl-studyHero .units-search__clear:hover,
html[data-theme="dark"] .ppl-studyHero .units-search__clear:focus-visible,
html[data-theme="dark"] .units-search__clear:hover,
html[data-theme="dark"] .units-search__clear:focus-visible{
  background: transparent !important;
  color: #202124 !important;
}

html[data-theme="dark"] .ppl-studyHero .units-search__count,
html[data-theme="dark"] .units-search__count{
  color: #5f6368 !important;
}

/* Mobile hero: remove the right feature panel entirely. */
@media (max-width: 760px){
  .ppl-studyHero{
    display: block !important;
    padding: 34px 16px 30px !important;
  }

  .ppl-studyHero__copy{
    max-width: none !important;
  }

  .ppl-studyHero__panel{
    display: none !important;
  }

  .ppl-studyHero h1{
    font-size: clamp(2.15rem, 11vw, 3rem) !important;
    line-height: 0.98 !important;
    margin-top: 18px !important;
  }

  .ppl-studyHero p{
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    max-width: none !important;
  }

  .ppl-studyHero__actions{
    margin-top: 20px !important;
  }

  .ppl-studyHero .units-search--filter,
  .units-search--filter{
    height: 48px !important;
    max-width: 100% !important;
    padding: 0 6px 0 13px !important;
    width: 100% !important;
  }

  .ppl-studyHero .units-search__icon,
  .units-search__icon{
    flex-basis: 34px !important;
    width: 34px !important;
  }

  .ppl-studyHero .units-search__input,
  .units-search__input{
    font-size: 0.92rem !important;
    padding-right: 6px !important;
  }

  .ppl-studyHero .units-search__clear,
  .units-search__clear{
    flex-basis: 38px !important;
    width: 38px !important;
  }

  .ppl-studyHero .units-search__count,
  .units-search__count{
    display: none !important;
  }
}

@media (max-width: 380px){
  .ppl-studyHero .units-search__input,
  .units-search__input{
    font-size: 0.86rem !important;
  }
}
/* Search-empty actions: useful next steps instead of leaving unit-type headers behind. */
.study-searchResults__emptyActions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:14px 0 10px}.study-searchResults__emptyActions a{display:inline-flex;align-items:center;gap:7px;border-radius:10px;background:#0b5f65;color:#fff!important;text-decoration:none!important;padding:9px 12px;font-size:.8rem;font-weight:850}.study-searchResults__emptyActions a.is-secondary{background:#eef3f3;color:#234b50!important}.study-searchResults__empty>small{display:block;max-width:690px;margin:0 auto;color:#7a858d;line-height:1.5}html[data-theme="dark"] .study-searchResults__emptyActions a.is-secondary{background:#243551;color:#dce7f5!important}

/* Institution-sponsored Study access — same PPL visual language, no extra portal. */
.ppl-institutionAccess{align-items:center;background:var(--ppl-white,#fff);border:1px solid var(--ppl-border-solid,#e2e8f4);border-radius:14px;display:flex;gap:10px;margin:14px auto 6px;max-width:1120px;padding:10px 12px}
.ppl-institutionAccess__icon{align-items:center;background:var(--ppl-lime,#dcf465);border-radius:10px;color:var(--ppl-navy,#102d6c);display:flex;flex:0 0 34px;height:34px;justify-content:center;width:34px}
.ppl-institutionAccess__copy{display:flex;align-items:baseline;gap:8px;min-width:0}.ppl-institutionAccess__copy span{color:var(--ppl-cobalt,#1c46a5);font-size:.64rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.ppl-institutionAccess strong{color:var(--ppl-navy,#102d6c);font-size:.8rem;font-weight:900}.ppl-institutionAccess small{color:var(--ppl-muted,#7a7f8c);font-size:.68rem;font-weight:650}.ppl-institutionAccess>a{color:var(--ppl-cobalt,#1c46a5);font-size:.72rem;font-weight:900;margin-left:auto;text-decoration:none;white-space:nowrap}
html[data-theme="dark"] .ppl-institutionAccess{background:#172b56;border-color:rgba(245,247,255,.16)}html[data-theme="dark"] .ppl-institutionAccess strong{color:#f5f7ff}
@media(max-width:640px){.ppl-institutionAccess{align-items:center;margin:12px 12px 4px}.ppl-institutionAccess__copy{display:grid;gap:1px}.ppl-institutionAccess__copy span{display:none}.ppl-institutionAccess>a{font-size:.68rem}.ppl-institutionAccess small{display:none}}
