.home-catalog-section{padding-block:28px 32px;border-bottom:1px solid #e8eef1;--catalog-accent:#08786d;--catalog-soft:#e7f5f1;--catalog-ink:#075c52;background:#fff}
.home-catalog-section--institute{background:#e8f0fe;--catalog-accent:#2563eb;--catalog-soft:#dbe7ff;--catalog-ink:#1e3a8a}
.home-catalog-section--tutor{background:#fff3d4;--catalog-accent:#9b6900;--catalog-soft:#ffe9a8;--catalog-ink:#6b4700}
.home-catalog-section--ad{background:transparent;--catalog-accent:#e11d48;--catalog-soft:#ffe4ea;--catalog-ink:#9f1239;border-bottom:0}
.home-catalog-section--panel{padding:18px;border:1px solid #e2e9ef;border-radius:18px;border-bottom:1px solid #e2e9ef;background:#fff;box-shadow:0 8px 22px rgba(20,40,50,.04)}
.home-catalog-section--panel.home-catalog-section--institute{background:#e8f0fe;border-color:#c7d7f5}
.home-catalog-section--panel.home-catalog-section--tutor{background:#fff3d4;border-color:#f0d78a}
.home-catalog-split{padding-block:8px 28px}
.home-catalog-split-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.home-catalog-list{display:flex;flex-direction:column;gap:10px;height:100%}
.home-catalog-grid--schools{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-catalog-grid--ads{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:4px}
.home-catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.home-catalog-heading h2{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0;font-size:22px;line-height:1.5;font-weight:800;color:#172333;letter-spacing:0}
.home-catalog-heading h2>.lucide{width:23px;height:23px;color:var(--catalog-accent)}
.home-catalog-heading .text-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:13px;white-space:nowrap;color:var(--catalog-accent)}
.home-catalog-heading .text-link .lucide{width:16px;height:16px}
.home-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.home-catalog-ad-card{display:flex;min-width:0;min-height:225px;border-radius:8px;overflow:hidden}
.home-catalog-ad-card>.sponsored-banner{flex:1 1 auto;display:flex;flex-direction:column;width:100%;height:100%;min-height:100%;margin:0;border-radius:inherit;overflow:hidden}
.home-catalog-ad-card .sponsored-banner.sponsored-banner-photo{border:0;background:transparent;box-shadow:none}
.home-catalog-ad-card .sponsored-banner-slide{flex:1 1 auto;display:flex;min-height:0;width:100%}
.home-catalog-ad-card .sponsored-banner.sponsored-banner-photo a{position:relative;flex:1 1 auto;display:block;width:100%;height:100%;min-height:100%;padding:0}
.home-catalog-ad-card .sponsored-banner.sponsored-banner-photo img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;border-radius:0}
.home-catalog-ad-card .sponsored-banner.sponsored-banner-photo .sponsored-label{display:none}
.home-catalog-ad-card .sponsored-banner:not(.sponsored-banner-photo){border-radius:8px}
.home-catalog-ad-card .sponsored-banner:not(.sponsored-banner-photo) a{flex:1;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:100%}
.home-catalog-ad-card .sponsored-banner-carousel{padding-bottom:0}
.home-catalog-ad-card>.sponsored-banner.sponsored-banner-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:4px;width:100%;height:100%;min-height:100%;padding:0}
.home-catalog-ad-card .sponsored-banner-columns .sponsored-banner-slide{min-height:0;height:100%}

.home-catalog-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dce6eb;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(31,56,75,.06);transition:border-color .18s,box-shadow .18s,transform .18s}
.home-catalog-card:hover{border-color:var(--catalog-accent);box-shadow:0 12px 26px rgba(31,56,75,.1);transform:translateY(-2px)}
.home-catalog-card.is-featured{border-color:#dce6eb}
.home-catalog-card.is-featured:hover{border-color:var(--catalog-accent)}

.home-catalog-card.home-catalog-card--school,
.home-catalog-card.home-catalog-card--school.is-featured{
  border:1.5px solid #575757;
  box-shadow:0 6px 18px rgba(31,56,75,.05);
}
.home-catalog-card.home-catalog-card--school:hover,
.home-catalog-card.home-catalog-card--school.is-featured:hover{
  border-color:var(--catalog-accent);
  box-shadow:0 12px 26px rgba(31,56,75,.1);
}
.home-catalog-card--school .home-catalog-media{height:132px;background:#eef2f5}
.home-catalog-card--school .home-catalog-media img{object-fit:cover}
.home-catalog-card--school .home-catalog-featured-mark{top:10px;right:10px}
.home-catalog-card--school .home-catalog-compare{left:10px;top:10px;bottom:auto}
.home-catalog-card--school .home-catalog-card-body{align-items:center;text-align:center;padding-top:14px;padding-bottom:16px}
.home-catalog-card--school h3{justify-content:center;width:100%}
.home-catalog-card--school h3 a{-webkit-line-clamp:3;text-align:center}
.home-catalog-school-meta{margin:8px 0 0;font-size:12.5px;line-height:1.7;font-weight:650;color:#647580;text-align:center}

.home-catalog-media.is-placeholder img,
.home-catalog-card.is-placeholder-photo .home-catalog-media img{
  filter:none;
  opacity:.3;
  transition:opacity .22s ease;
}
.home-catalog-card.is-placeholder-photo:hover .home-catalog-media img,
.home-catalog-card.is-placeholder-photo:focus-within .home-catalog-media img{
  opacity:1;
}

.home-catalog-card--row{flex-direction:row;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;min-height:92px;overflow:hidden}
.home-catalog-card--row .home-catalog-media-wrap{position:relative;flex:0 0 64px;width:64px;height:64px}
.home-catalog-card--row .home-catalog-media,
.home-catalog-card--row .home-catalog-media.is-avatar{display:block;width:64px;height:64px;border-radius:999px;overflow:hidden;background:#eef2f5}
.home-catalog-card--row .home-catalog-media img{width:100%;height:100%;object-fit:cover}
.home-catalog-card--row .home-catalog-card-body{position:relative;padding:0;min-width:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:10px;align-content:center;align-items:center}
.home-catalog-card--row h3{grid-column:1;grid-row:1;font-size:15px;display:block;margin:0}
.home-catalog-card--row h3 a{-webkit-line-clamp:1}
.home-catalog-card--row .home-catalog-sub{grid-column:1;grid-row:2;margin:3px 0 0;font-size:12.5px;line-height:1.45;font-weight:500;color:#475569;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.home-catalog-card--row .home-catalog-place{grid-column:1;grid-row:3;margin:2px 0 0;font-size:12px;font-weight:700;color:#1e293b}
.home-catalog-row-actions{
  grid-column:2;grid-row:1 / span 3;
  position:relative;z-index:2;left:auto;top:auto;transform:none;
  display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;margin:0;width:78px;flex:0 0 78px;
}
.home-catalog-row-actions > *{
  position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  margin:0;width:100%;transform:none;float:none;
}
.home-catalog-compare--inline{position:static!important;margin:0;transform:none;width:100%}
.home-catalog-featured-mark{
  position:absolute;top:8px;right:8px;z-index:3;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:4px 10px;
  border-radius:999px;border:1.5px solid #e11d48;
  background:#fff;color:#e11d48;
  font-size:12px;font-weight:800;line-height:1;
  box-shadow:0 4px 10px rgba(20,40,50,.12);
}
.home-catalog-featured-mark--inline{
  position:static!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
  display:inline-flex;width:100%;min-height:28px;padding:4px 8px;font-size:11px;
  box-sizing:border-box;box-shadow:none;
}
.home-catalog-media-wrap{position:relative}
.home-catalog-media{position:relative;display:block;width:100%;height:148px;overflow:hidden;background:#eef2f5}
.home-catalog-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.home-catalog-compare{position:absolute;left:8px;bottom:8px;z-index:3;margin:0}
.home-catalog-compare-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:34px;padding:5px 10px;border-radius:999px;
  border:1.5px solid #08786d;background:#fff;color:#08786d;
  font-size:12px;font-weight:800;line-height:1;cursor:pointer;
  box-shadow:0 4px 10px rgba(20,40,50,.1);
}
.home-catalog-row-actions .home-catalog-compare-btn{width:100%;box-sizing:border-box;min-height:28px;padding:4px 8px;font-size:11px;box-shadow:none}
.home-catalog-row-actions .home-catalog-compare-btn .lucide{width:13px;height:13px}
.home-catalog-compare-btn .lucide{width:15px;height:15px}
.home-catalog-compare-btn:disabled{opacity:.55;cursor:default}
.home-catalog-compare-btn:hover:not(:disabled){background:#eaf5f1;color:#066258;border-color:#066258}
.home-catalog-card-body{display:flex;flex-direction:column;flex:1;gap:0;padding:12px 14px 14px;min-width:0}
.home-catalog-sub{margin:6px 0 0;font-size:13px;line-height:1.6;color:#334155}
.home-catalog-place{display:block;margin:6px 0 0;font-size:13px;font-weight:700;color:#1e293b}
.home-catalog-card h3{margin:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:15px;font-weight:800;line-height:1.55;letter-spacing:0}
.home-catalog-card h3 a{min-width:0;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:#172333;text-decoration:none}
.home-catalog-card h3 a:hover{color:var(--catalog-accent)}
.home-catalog-meta{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.home-catalog-meta li{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;background:var(--catalog-soft);color:var(--catalog-ink);font-size:12.5px;font-weight:700}
.home-catalog-rating{display:inline-flex;align-items:center;gap:5px;margin:8px 0 0;font-size:13px;color:#795200}
.home-catalog-rating .lucide{width:14px;height:14px;fill:currentColor}
.home-catalog-rating strong{font-weight:800;color:#172333}
.home-catalog-empty{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:22px 0;color:#647580;border-top:1px solid #e2eaee}
.home-catalog-empty--cta{justify-content:space-between;align-items:center;padding:18px 16px;border:1px solid #f3c2cb;border-radius:14px;background:#fff;border-top:1px solid #f3c2cb}
.home-catalog-empty--cta strong{display:block;margin:0 0 4px;font-size:16px;color:#9f1239}
.home-catalog-empty--cta p{margin:0;font-size:13px;line-height:1.7;color:#647580;max-width:48ch}
.home-catalog-empty>.lucide{width:24px;height:24px;color:var(--catalog-accent)}
.home-catalog-empty p{margin:0;font-size:14px}
.home-catalog-empty a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:var(--catalog-accent)}
.home-catalog-empty a .lucide{width:15px;height:15px}
.home-catalog-section :is(button,a):focus-visible{outline:2px solid #08786d;outline-offset:3px}
@media(max-width:1000px){
  .home-catalog-grid,.home-catalog-grid--schools,.home-catalog-grid--ads{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-catalog-split-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
  .home-catalog-section{padding-block:20px 24px}
  .home-catalog-section--panel{padding:14px}
  .home-catalog-ad-card{min-height:140px}
  .home-catalog-heading{gap:8px;margin-bottom:12px}
  .home-catalog-heading h2{font-size:19px;gap:6px}
  .home-catalog-heading h2>.lucide{width:20px;height:20px}
  .home-catalog-heading .text-link{font-size:12px;gap:4px}
  .home-catalog-grid,
  .home-catalog-grid--schools,
  .home-catalog-grid--ads{grid-template-columns:minmax(0,1fr);gap:10px}
  .home-catalog-card--school{
    flex-direction:row;align-items:stretch;min-height:0;
  }
  .home-catalog-card--school .home-catalog-media-wrap{
    flex:0 0 108px;width:108px;align-self:stretch;
  }
  .home-catalog-card--school .home-catalog-media{
    height:100%;min-height:88px;width:108px;
  }
  .home-catalog-card--school .home-catalog-card-body{
    align-items:flex-start;text-align:right;justify-content:center;
    padding:10px 12px;
  }
  .home-catalog-card--school h3{justify-content:flex-start;width:100%}
  .home-catalog-card--school h3 a{-webkit-line-clamp:2;text-align:right}
  .home-catalog-school-meta{margin:4px 0 0;font-size:12px;text-align:right;line-height:1.5}
  .home-catalog-card-body{padding:10px}
  .home-catalog-card h3{font-size:14px;gap:6px}
  .home-catalog-compare{left:6px;bottom:6px}
  .home-catalog-card--school .home-catalog-compare{left:6px;top:auto;bottom:6px;right:auto}
  .home-catalog-card--school .home-catalog-featured-mark{
    top:6px;right:6px;left:auto;min-height:22px;padding:3px 7px;font-size:10px;z-index:4;
  }
  .home-catalog-card--school .home-catalog-compare-btn{
    width:32px;height:32px;min-height:32px;min-width:32px;padding:0;gap:0;border-radius:999px;
  }
  .home-catalog-card--school .home-catalog-compare-btn .lucide{width:15px;height:15px}
  .home-catalog-card--school .home-catalog-compare-btn [data-compare-label]{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }
  .home-catalog-card--row{min-height:92px;padding:10px}
  .home-catalog-card--row .home-catalog-card-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;row-gap:0}
  .home-catalog-row-actions{grid-column:1;grid-row:4;flex-direction:row;align-items:center;width:auto;gap:6px;margin-top:6px}
  .home-catalog-row-actions .home-catalog-compare-btn,
  .home-catalog-featured-mark--inline{width:auto}
  .home-catalog-card--row .home-catalog-media-wrap,
  .home-catalog-card--row .home-catalog-media{width:56px;height:56px;flex-basis:56px}
}
