/* Sticky needs the page wrapper to clip, not hide, horizontal overflow */
@supports (overflow: clip) {
  .body-wrapper:has(.llf-hub--sticky) { overflow-x: clip; }
}

.llf-hub { font-family: 'Poppins', sans-serif; }

.llf-hub .llf-hub__grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.llf-hub--right .llf-hub__grid { grid-template-columns: minmax(0, 1fr) 340px; }
.llf-hub--right .llf-hub__aside { order: 2; }
.llf-hub .llf-hub__grid > .llf-hub__main:only-child { grid-column: 1 / -1; }

.llf-hub .llf-hub__aside { align-self: stretch; min-width: 0; }
.llf-hub .llf-hub__main { min-width: 0; }
.llf-hub--sticky .llf-hub__sticky { position: sticky; }

/* ---------- Contents card ---------- */
.llf-hub .llf-toc {
  padding: 24px 24px 16px;
  border: 1px solid #77CD6A;
  border-radius: 16px;
  background: #fff;
}
.llf-hub .llf-toc__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing:-0.5px;
  color: #010A2C;
}
.llf-hub .llf-toc__list { margin: 0; padding: 0; list-style: none; }
.llf-hub .llf-toc__item { margin: 0; padding: 0; 
/*   border-bottom: 1px solid #EEF6E9;  */
}
.llf-hub .llf-toc__item:last-child { border-bottom: 0; }
.llf-hub .llf-toc__item::before { display: none; }
.llf-hub .llf-toc__link {
  display: block;
  padding: 12px 26px 12px 0px;
  border-bottom: 1px solid rgba(128, 183, 71, 0.2);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #9D9CAF;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.llf-hub .llf-toc__link:hover { color: #272D37; }
.llf-hub .llf-toc__link.is-active {
  margin: 4px 0;
  padding: 14px 16px;
  background: #F2FAEF;
  border-radius:8px;
  color: #000000;
  font-weight: 500;
  border-bottom:1px solid transparent;
}

/* ---------- Help card ---------- */
.llf-hub .llf-help {
  margin-top: 40px;
  padding: 32px 16px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #F6FBF6 0%, #E4F8E6 100%);
  text-align: center;
}
.llf-hub .llf-help:first-child { margin-top: 0; }
.llf-hub .llf-help__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #272D37;
}
.llf-hub .llf-help__text { margin: -8px 0 20px; font-size: 15px; line-height: 1.5; color: #5F6D7E; }
.llf-hub .llf-help__text p { margin: 0 0 8px; }
.llf-hub .llf-help__text p:last-child { margin-bottom: 0; }
.llf-hub .llf-help__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border: 1px solid #77CD6A;
  border-radius: 74px;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #77CD6A;
  text-decoration: none;
  transition: all .3s ease;
}
.llf-hub .llf-help__btn:hover {
  background: linear-gradient(90deg, #77CD6A 0%, #74C768 100%);
  color: #fff;
  box-shadow: 0 24px 40px rgba(0, 0, 0, .12);
}

/* ---------- Categories ---------- */
.llf-hub .llf-cat { margin-bottom: 80px; }
.llf-hub .llf-cat:last-child { margin-bottom: 0; }
.llf-hub .llf-cat__title {
  margin: 0 0 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.5px;
  color: #1F2937;
}

/* ---------- Accordion ---------- */
.llf-hub .llf-acc__item { border-bottom: 1px solid #DAE0E6; }
.llf-hub .llf-acc__heading { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.llf-hub .llf-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #272D37;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: color .25s ease;
}
.llf-hub .llf-acc__btn:hover,
.llf-hub .llf-acc__item.is-open .llf-acc__btn { color: #77CD6A; background: none; }
.llf-hub .llf-acc__btn:focus-visible { outline: 2px solid #77CD6A; outline-offset: 4px; border-radius: 4px; }
.llf-hub .llf-acc__item.is-open .llf-acc__btn { padding-bottom: 12px; }

.llf-hub .llf-acc__icon {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #77CD6A 0%, #34BDC7 100%);
  opacity: .55;
  transition: opacity .3s ease;
}
.llf-hub .llf-acc__icon::before,
.llf-hub .llf-acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.llf-hub .llf-acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.llf-hub .llf-acc__btn:hover .llf-acc__icon { opacity: .8; }
.llf-hub .llf-acc__item.is-open .llf-acc__icon { opacity: 1; }
.llf-hub .llf-acc__item.is-open .llf-acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Smooth height animation without measuring in JS */
.llf-hub .llf-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.llf-hub .llf-acc__item.is-open .llf-acc__panel { grid-template-rows: 1fr; }
.llf-hub .llf-acc__inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear .35s;
}
.llf-hub .llf-acc__item.is-open .llf-acc__inner { visibility: visible; transition-delay: 0s; }

.llf-hub .llf-acc__answer {
  padding: 0 64px 24px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #5F6D7E;
}
.llf-hub .llf-acc__answer p,
.llf-hub .llf-acc__answer ul,
.llf-hub .llf-acc__answer ol { margin: 0 0 24px; font-size: inherit; line-height: inherit; color: inherit; }
.llf-hub .llf-acc__answer > :last-child { margin-bottom: 0; }
.llf-hub .llf-acc__answer ul,
.llf-hub .llf-acc__answer ol { padding-left: 20px; }
.llf-hub .llf-acc__answer li { margin-bottom: 8px; }
.llf-hub .llf-acc__answer a { color: #77CD6A; text-decoration: underline; }
.llf-hub .llf-acc__answer strong { color: #272D37; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .llf-hub .llf-acc__panel,
  .llf-hub .llf-acc__inner,
  .llf-hub .llf-acc__icon::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .llf-hub .llf-hub__grid { grid-template-columns: 290px minmax(0, 1fr); gap: 40px; }
  .llf-hub--right .llf-hub__grid { grid-template-columns: minmax(0, 1fr) 290px; }
}
@media (max-width: 1024px) {
  .llf-hub .llf-hub__grid,
  .llf-hub--right .llf-hub__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .llf-hub .llf-hub__aside { display: contents; }
  .llf-hub--sticky .llf-hub__sticky { position: static; display: contents; }
  .llf-hub .llf-toc { order: 1; }
  .llf-hub .llf-hub__main { order: 2; }
  .llf-hub .llf-help { order: 3; margin-top: 0; }
  .llf-hub .llf-toc__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .llf-hub .llf-cat { margin-bottom: 64px; }
  .llf-hub .llf-cat__title { font-size: 30px; }
}
@media (max-width: 767px) {
  .llf-hub .llf-toc__list { grid-template-columns: 1fr; }
  .llf-hub .llf-cat { margin-bottom: 48px; }
  .llf-hub .llf-cat__title { font-size: 26px; }
  .llf-hub .llf-acc__btn { gap: 16px; padding: 20px 0; font-size: 16px; }
  .llf-hub .llf-acc__icon { flex-basis: 28px; width: 28px; height: 28px; }
  .llf-hub .llf-acc__icon::before,
  .llf-hub .llf-acc__icon::after { width: 12px; }
  .llf-hub .llf-acc__answer { padding-right: 0; font-size: 15px; }
  .llf-hub .llf-acc__answer p { margin-bottom: 16px; }
  .llf-hub .llf-help { padding: 28px 20px 24px; }
}
