/* Front page: modern UI/UX v2 overrides */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body.site-shell {
  background: radial-gradient(
      1200px 600px at 90% -5%,
      rgba(14, 165, 233, 0.06),
      transparent 50%
    ),
    radial-gradient(
      1000px 500px at 0% 30%,
      rgba(6, 182, 212, 0.05),
      transparent 50%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modern-home {
  --home-surface: rgba(255, 255, 255, 0.88);
  --home-surface-strong: rgba(255, 255, 255, 0.96);
  --home-border: rgba(2, 6, 23, 0.08);
  --home-shadow-sm: 0 12px 34px rgba(2, 6, 23, 0.1);
  --home-shadow: 0 28px 95px rgba(2, 6, 23, 0.16);
  --home-radius-xl: 34px;
  --home-hero-wave-height: 88px;
  --home-search-guide-cut-height: 90px;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.modern-home::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      900px circle at 12% 0%,
      rgba(14, 165, 233, 0.09),
      transparent 55%
    ),
    radial-gradient(
      850px circle at 100% 20%,
      rgba(56, 189, 248, 0.08),
      transparent 55%
    ),
    radial-gradient(
      900px circle at 70% 100%,
      rgba(99, 102, 241, 0.08),
      transparent 58%
    );
  pointer-events: none;
}

#modern-classifieds,
#modern-latest {
  scroll-margin-top: 96px;
}

.modern-home #modern-classifieds.modern-section--classifieds {
  position: relative;
  z-index: 1;
  border-top: none;
  /* Overlap under the hero wave so no gap/seam is visible. */
  margin-top: calc(-1 * var(--home-hero-wave-height));
  /* Keep heading/icons visible (compensate for the overlap). */
  padding-top: calc(1.25rem + var(--home-hero-wave-height));
}

.modern-home #modern-classifieds.modern-section--classifieds::before {
  content: none;
}

.modern-home #modern-classifieds .modern-section__head {
  margin-bottom: 1rem;
}

.modern-home #modern-classifieds .modern-section__head::after {
  content: none;
}

.modern-home .modern-hero {
  margin: 0;
  position: relative;
  z-index: 2;
  /* Allow the AJAX suggestion list to extend beyond the hero section. */
  overflow: visible;
}

.modern-home .modern-hero::before,
.modern-home .modern-hero::after {
  /* The base theme uses floating blobs here; keep the v2 hero clean. */
  content: none;
}

.modern-home .modern-hero__inner {
  --hero-pad: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 0;
  border: none;
  border-bottom: none;
  /* Avoid a visible "seam/shadow gap" where the hero meets the next section. */
  box-shadow: none;
  padding: var(--hero-pad);
  /* Keep content clear of the wave overlay */
  padding-bottom: calc(var(--hero-pad) + clamp(3.25rem, 6vw, 5.25rem));
  justify-items: center;
  background: linear-gradient(150deg, #0c1929 0%, #0f2847 45%, #0c4a6e 100%);
}

.modern-home .modern-hero__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  opacity: 0.6;
  z-index: 0;
}

/* Wavy divider like the reference screenshot */
.modern-home .modern-hero__inner::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  bottom: -1px;
  height: var(--home-hero-wave-height);
  background-size: auto;
  background-repeat: repeat no-repeat;
  background-position: 49vw bottom;
  /* Fill color matches the next section top background (#ffffff). */
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1200 134' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M0 98L50 97C100 96 200 93 300 88C400 84 500 76 600 79C700 81 800 93 900 98C1000 103 1100 100 1150 99L1200 98V134H1150C1100 134 1000 134 900 134C800 134 700 134 600 134C500 134 400 134 300 134C200 134 100 134 50 134H0V98Z' fill='%23ffffff'/></svg>");
  pointer-events: none;
  z-index: 1;
}

.modern-home .modern-hero__inner > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 850px) {
  .modern-home {
    --home-hero-wave-height: 44px;
    --home-search-guide-cut-height: 56.5px;
  }
}

.modern-home .modern-hero__content {
  width: min(100%, 960px);
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.modern-home .modern-hero__title {
  font-size: clamp(1.95rem, 2.6vw + 1rem, 3.2rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.modern-home .ij-mobile-hero-title-break {
  display: none;
}

@media (max-width: 781px) {
  .modern-home .ij-mobile-hero-title-break {
    display: block;
    height: 0;
    line-height: 0;
  }
}

.modern-home .modern-hero__subtitle {
  font-size: clamp(0.85rem, 0.5vw + 0.8rem, 1.1rem);
  color: rgba(245, 252, 255, 0.94);
  text-align: center;
  margin-inline: auto;
}

.modern-home .modern-search {
  width: min(100%, 880px);
  margin-inline: auto;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  z-index: 80;
}

.modern-home .modern-search:hover {
  background: rgba(255, 255, 255, 0.08);
}

.modern-home .modern-search:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.2);
}

.modern-home .modern-search__tab {
  padding: 0.38rem 0.95rem;
  font-weight: 700;
}

#modern-search-mode-business:focus-visible
  ~ .modern-search__tabs
  label[for='modern-search-mode-business'],
#modern-search-mode-classified:focus-visible
  ~ .modern-search__tabs
  label[for='modern-search-mode-classified'] {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.modern-home .modern-search__field,
.modern-home .modern-search__select {
  border-radius: 16px;
  border-color: rgba(2, 6, 23, 0.12);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.85rem 0.95rem;
  font-size: 0.98rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  min-height: 52px;
}

.modern-home .modern-search {
  --modern-search-control-height: 56px;
}

.modern-home .modern-search__field,
.modern-home .modern-search__select,
.modern-home .modern-search__submit {
  height: var(--modern-search-control-height);
  min-height: 0;
  box-sizing: border-box;
}

.modern-home .modern-search__field,
.modern-home .modern-search__select {
  padding-block: 0;
}

.modern-home .modern-search__field {
  direction: rtl;
  text-align: right;
}

.modern-home .modern-search__field::placeholder {
  direction: rtl;
  text-align: right;
}

.modern-home .modern-search__field:hover,
.modern-home .modern-search__select:hover {
  transform: translateY(-1px);
}

.modern-home .modern-search__submit {
  border-radius: 16px;
  padding: 0 1.1rem;
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.96);
  background-image: none;
  color: #0f172a;
  border: 1px solid rgba(2, 6, 23, 0.14);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modern-home .modern-search__submit:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.modern-home .modern-search__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28), 0 16px 34px rgba(2, 6, 23, 0.18);
}

.modern-home .modern-search__fields {
  align-items: stretch;
}

.modern-home .ij-suggest-wrap {
  position: relative;
  min-width: 0;
}

.modern-home .ij-suggest-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(2, 6, 23, 0.14);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(2, 6, 23, 0.18);
  padding: 0.35rem;
  max-height: 340px;
  overflow: auto;
  z-index: 60;
  text-align: right;
}

.modern-home .ij-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.modern-home .ij-suggest-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.modern-home .ij-suggest-item__title {
  font-weight: 400;
}

.modern-home .ij-suggest-item__meta {
  font-weight: 400;
  font-size: 0.86rem;
  color: rgba(15, 23, 42, 0.62);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-home .ij-suggest-item:hover,
.modern-home .ij-suggest-item.is-active {
  background: rgba(14, 165, 233, 0.09);
}

.modern-home .ij-suggest-item:active {
  transform: translateY(1px);
}

.modern-home .ij-suggest-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.12);
  color: rgba(14, 116, 144, 1);
  flex: 0 0 auto;
}

.modern-home .ij-suggest-empty {
  padding: 0.7rem 0.85rem;
  color: rgba(15, 23, 42, 0.65);
  font-weight: 400;
}

.modern-home .modern-button {
  gap: 0.45rem;
}

.modern-home .modern-hero__actions {
  justify-content: center;
  gap: 1.25rem;
}

.modern-home .modern-hero__actions .modern-button--primary {
  background: rgba(255, 255, 255, 0.96);
  background-image: none;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.18);
}

.modern-home .modern-hero__actions .modern-button--primary:hover {
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.22);
}

.modern-home .modern-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.15rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 160ms ease, text-decoration-color 160ms ease, transform 160ms ease;
}

.modern-home .modern-hero__link:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.modern-home .modern-hero__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
  border-radius: 8px;
}

.modern-home .modern-stat-card {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18);
}

.modern-home .modern-section__head {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.35rem;
}

.modern-home .modern-section__head::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to left, rgba(14, 165, 233, 0.55), transparent);
  opacity: 0.65;
}

.modern-home .modern-section__eyebrow {
  font-weight: 700;
}

.modern-home .modern-section--search-guide {
  position: relative;
  margin-top: 0;
  /* Extra room for the diagonal bottom cut */
  padding: 0 0 calc(1.75rem + var(--home-search-guide-cut-height));
  border: none;
  overflow: hidden;
  background: linear-gradient(150deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  /* Cut the section itself (no white "separator" shape). The next section is pulled up behind it. */
  -webkit-clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-search-guide-cut-height)),
    0 100%
  );
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-search-guide-cut-height)),
    0 100%
  );
  z-index: 1;
}

.modern-home .modern-section--search-guide::before {
  content: none;
}

.modern-home .modern-section--search-guide::after {
  content: none;
}

.modern-home .modern-section--search-guide > * {
  position: relative;
  z-index: 2;
}

/* Pull the sponsored section up behind the diagonal cut so there is no visible seam/white gap. */
.modern-home .modern-section--search-guide + .modern-section--sponsored {
  position: relative;
  z-index: 0;
  margin-top: calc(-1 * var(--home-search-guide-cut-height));
  /* Keep the heading/cards clear of the overlapped/cut area. */
  padding-top: calc(2.25rem + var(--home-search-guide-cut-height));
  border-top: none;
}

/* If sponsored is disabled, counters is the next section. Keep the same seam-free join. */
.modern-home .modern-section--search-guide + .modern-section--counters {
  position: relative;
  z-index: 0;
  margin-top: calc(-1 * var(--home-search-guide-cut-height));
  padding-top: calc(1rem + var(--home-search-guide-cut-height));
  border-top: none;
}

.modern-home .modern-section--counters {
  margin-top: 0;
  padding: 1rem 0 0.75rem;
  background: linear-gradient(150deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modern-home .modern-counter-summary {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.2rem 0.4rem 0;
  text-align: center;
}

.modern-home .modern-counter-summary__title {
  margin: 0;
  color: rgba(248, 250, 252, 0.98);
  font-size: clamp(1.06rem, 1.1vw + 0.8rem, 1.48rem);
  line-height: 1.5;
}

.modern-home .modern-counter-summary__text {
  margin: 0.42rem auto 0;
  max-width: 78ch;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  line-height: 1.9;
}

.modern-home .modern-counter-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  max-width: 980px;
  margin: 1rem auto 0;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.26);
  gap: 0.5rem;
}

.modern-home .modern-counter-item {
  position: relative;
  text-align: center;
  padding: 0.45rem 0.3rem;
}

.modern-home .modern-counter-item .modern-counter-card__value {
  margin: 0;
  color: rgba(248, 250, 252, 0.98);
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.4rem);
  line-height: 1.1;
}

.modern-home .modern-counter-item .modern-counter-card__label {
  margin-top: 0.22rem;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.86rem;
}

.modern-home .modern-counter-intro {
  position: relative;
  margin: 0;
  max-width: none;
  padding: 1rem clamp(1rem, 4.6vw, 2.8rem) 1.1rem;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  overflow: hidden;
}

.modern-home .modern-counter-intro::before {
  content: '';
  position: absolute;
  inset-inline: 20%;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgb(236, 0, 0),
    rgba(125, 211, 252, 0.95),
    rgba(45, 212, 191, 0.95),
    rgba(20, 184, 166, 0)
  );
}

.modern-home .modern-counter-intro__eyebrow {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(125, 211, 252, 0.95);
  letter-spacing: 0.01em;
}

.modern-home .modern-counter-intro__title {
  margin: 0.28rem 0 0;
  color: rgba(248, 250, 252, 0.98);
  font-size: clamp(1.1rem, 1.3vw + 0.78rem, 1.58rem);
  line-height: 1.45;
}

.modern-home .modern-counter-intro__text {
  margin: 0.35rem auto 0;
  max-width: 82ch;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  line-height: 1.95;
  text-align: right;
  direction: rtl;
}

.modern-home .modern-counter-intro__text a {
  color: rgba(125, 211, 252, 0.98);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.modern-home .modern-counter-intro__text a:hover {
  color: rgba(255, 255, 255, 0.98);
}

.modern-home .modern-counter-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
  gap: 0.75rem;
}

.modern-home .modern-counter-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 0.9rem 0.95rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.modern-home .modern-counter-card__value {
  margin: 0;
  color: #0b1220;
  font-size: clamp(2.5rem, 3.2vw + 1.6rem, 3.6rem);
  line-height: 1.1;
}

.modern-home .modern-counter-card__label {
  margin-top: 0.26rem;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.88rem;
}

.modern-home .modern-section--classifieds,
.modern-home .modern-section--categories,
.modern-home .modern-section--sponsored,
.modern-home .modern-section--latest {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2.25rem 0 1.6rem;
  border-top: 1px solid rgba(2, 6, 23, 0.06);
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

.modern-home .reveal-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.modern-home .reveal-section.reveal-section--visible {
  opacity: 1;
  transform: translateY(0);
}

.modern-home .modern-section--classifieds {
  margin-top: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modern-home .modern-section--categories,
.modern-home .modern-section--sponsored,
.modern-home .modern-section--latest {
  margin-top: 0;
}

.modern-home .modern-section--categories {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.modern-home .modern-section--sponsored {
  background: #ffffff;
}

.modern-home .modern-section--latest {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modern-home .modern-section--sponsored,
.modern-home .modern-section--latest {
  border-top-color: rgba(2, 6, 23, 0.06);
  border-bottom-color: rgba(2, 6, 23, 0.06);
}

.modern-home .modern-section--classifieds > .container,
.modern-home .modern-section--categories > .container,
.modern-home .modern-section--sponsored > .container,
.modern-home .modern-section--latest > .container {
  position: relative;
  z-index: 1;
}

.modern-home .modern-section--classifieds::before,
.modern-home .modern-section--categories::before,
.modern-home .modern-section--sponsored::before,
.modern-home .modern-section--latest::before {
  content: '';
  position: absolute;
  inset-inline: -6%;
  top: -68px;
  height: 118px;
  pointer-events: none;
  z-index: 0;
}

.modern-home .modern-section--classifieds::before {
  background: linear-gradient(
    180deg,
    rgba(125, 211, 252, 0.34),
    rgba(255, 255, 255, 0)
  );
  clip-path: ellipse(74% 88% at 50% 100%);
}

.modern-home .modern-section--categories::before {
  background: linear-gradient(
    180deg,
    rgba(147, 197, 253, 0.32),
    rgba(255, 255, 255, 0)
  );
  clip-path: ellipse(58% 76% at 50% 100%);
}

.modern-home .modern-section--sponsored::before {
  background: linear-gradient(
    180deg,
    rgba(94, 234, 212, 0.24),
    rgba(255, 255, 255, 0)
  );
  clip-path: ellipse(70% 90% at 50% 100%);
}

.modern-home .modern-section--latest::before {
  background: linear-gradient(
    180deg,
    rgba(125, 211, 252, 0.24),
    rgba(255, 255, 255, 0)
  );
  clip-path: ellipse(62% 72% at 50% 100%);
}

.modern-home .modern-section--classifieds::after,
.modern-home .modern-section--categories::after,
.modern-home .modern-section--sponsored::after,
.modern-home .modern-section--latest::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  pointer-events: none;
  z-index: 0;
}

.modern-home .modern-section--classifieds::after {
  left: -72px;
  bottom: -148px;
  border-radius: 44% 56% 62% 38% / 44% 36% 64% 56%;
  background: radial-gradient(
    circle at 38% 36%,
    rgba(56, 189, 248, 0.28),
    rgba(56, 189, 248, 0)
  );
}

.modern-home .modern-section--categories::after {
  right: -94px;
  bottom: -156px;
  border-radius: 56% 44% 40% 60% / 42% 62% 38% 58%;
  background: radial-gradient(
    circle at 42% 34%,
    rgba(59, 130, 246, 0.24),
    rgba(59, 130, 246, 0)
  );
}

.modern-home .modern-section--sponsored::after {
  left: -84px;
  top: 28%;
  border-radius: 35% 65% 50% 50% / 42% 35% 65% 58%;
  background: radial-gradient(
    circle at 65% 34%,
    rgba(94, 234, 212, 0.2),
    rgba(20, 184, 166, 0)
  );
}

.modern-home .modern-section--latest::after {
  right: -84px;
  top: 24%;
  border-radius: 52% 48% 63% 37% / 44% 52% 48% 56%;
  background: radial-gradient(
    circle at 35% 42%,
    rgba(125, 211, 252, 0.18),
    rgba(14, 165, 233, 0)
  );
}

.modern-home .modern-section--sponsored .modern-section__title,
.modern-home .modern-section--latest .modern-section__title {
  color: #0f172a;
}

.modern-home .modern-section--sponsored .modern-section__eyebrow,
.modern-home .modern-section--latest .modern-section__eyebrow {
  color: rgba(14, 116, 144, 0.95);
}

.modern-home .modern-section--sponsored .modern-section__head::after,
.modern-home .modern-section--latest .modern-section__head::after {
  background: linear-gradient(
    to left,
    rgba(56, 189, 248, 0.68),
    rgba(255, 255, 255, 0.08)
  );
  opacity: 0.75;
}

.modern-home .modern-panel {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(2, 6, 23, 0.06);
  box-shadow: var(--home-shadow-sm);
  backdrop-filter: saturate(180%) blur(14px);
}

.modern-home .modern-panel--classifieds {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.modern-home .modern-panel--classifieds .grid {
  grid-template-columns: repeat(2, minmax(0, 150px));
  gap: 1rem;
  justify-content: center;
}

.modern-home .modern-panel--classifieds .grid > div > a {
  background: var(--home-surface);
  border-color: rgba(2, 6, 23, 0.06);
  box-shadow: var(--home-shadow-sm);
}

.modern-home .modern-panel--classifieds img {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 18px;
  object-fit: cover;
  flex: 0 0 56px;
}

.modern-home .modern-category-grid {
  grid-template-columns: repeat(2, minmax(0, 150px));
  gap: 1rem;
  justify-content: center;
}

.modern-home .modern-category-card {
  background: var(--home-surface);
  border-color: rgba(2, 6, 23, 0.06);
  box-shadow: var(--home-shadow-sm);
}

.modern-home .modern-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.modern-home .ij-horizontal-cards .modern-listing-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04),
    0 6px 16px rgba(15, 23, 42, 0.06);
}

.modern-home .ij-horizontal-cards .modern-listing-card:hover {
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.1);
}

@media (min-width: 782px) {
  .modern-home
    .modern-section--latest
    .ij-horizontal-cards
    .modern-listing-card {
    height: 188px;
    min-height: 188px;
  }

  .modern-home
    .modern-section--latest
    .ij-horizontal-cards
    .modern-listing-card__body {
    overflow: hidden;
  }

  .modern-home
    .modern-section--latest
    .ij-horizontal-cards
    .modern-listing-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .modern-home
    .modern-section--latest
    .ij-horizontal-cards
    .modern-listing-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}

.home #content.site-content {
  flex-grow: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.home .site-main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.home .site-main > .modern-home {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.home .modern-home .modern-section--latest,
.home .modern-home .modern-section--latest.modern-section--soft {
  margin-bottom: 0;
  padding-bottom: 0;
}

.home .modern-home > .modern-section:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.home .modern-home .modern-section--latest .ij-business-list {
  margin-bottom: 0;
}

.modern-footer {
  margin-top: 0 !important;
}

@media (min-width: 782px) {
  .modern-home .modern-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .modern-home .modern-counter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .modern-home .modern-counter-summary {
    padding: 0.2rem 0.6rem 0;
  }

  .modern-home .modern-counter-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .modern-home .modern-counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-block: 20%;
    inset-inline-end: 0;
    width: 1px;
    background: rgba(148, 163, 184, 0.28);
  }

  .modern-home .modern-counter-intro {
    padding: 1.08rem clamp(1.2rem, 3vw, 3rem) 1.16rem;
  }

  .modern-home .modern-counter-card {
    min-height: 160px;
  }

  .modern-home .modern-panel--classifieds .grid {
    grid-template-columns: repeat(4, minmax(0, 170px));
    gap: 1.1rem;
    justify-content: center;
  }

  .modern-home .modern-category-grid {
    grid-template-columns: repeat(4, minmax(0, 170px));
    gap: 1.1rem;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .modern-home .modern-search__field:hover,
  .modern-home .modern-search__select:hover {
    transform: none;
  }
}
