/* ==========================================================================
   Madad 2026 redesign layer
   Loaded after style.css (see Inc/Base/Enqueue.php) and overrides it.
   Palette, typography and the redesigned areas: navigation, home hero,
   rating page headers (category header), cards, footer contact section.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Fonts
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Mikhmoret";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/mikhmoret-regular-aaa.woff2") format("woff2"),
       url("../fonts/mikhmoret-regular-aaa.woff") format("woff");
}
@font-face {
  font-family: "Mikhmoret";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/mikhmoret-bold-aaa.woff2") format("woff2"),
       url("../fonts/mikhmoret-bold-aaa.woff") format("woff");
}

/* -------------------------------------------------------------------------
   2. Tokens
   ------------------------------------------------------------------------- */
:root {
  --md-font: "Mikhmoret", "November Hebrew", Arial, sans-serif;

  --md-navy: #061D4C;
  --md-blue: #131C7E;
  --md-golden: #F7DFB6;
  --md-golden-dark: #BA882C;
  --md-primary: #061D4C;
  --md-secondary: #131C7E;
  --md-text: #1B2238;
  --md-text-light: rgba(27, 34, 56, 0.65);

  --md-gradient-navy: linear-gradient(90deg, #061D4C 0%, #0B1F63 45%, #131C7E 100%);
  --md-gradient-navy-diag: linear-gradient(120deg, #061D4C 0%, #0A1E5E 50%, #131C7E 100%);
  --md-gradient-gold: linear-gradient(270deg, #F7DFB6 0%, #E4C58A 45%, #BA882C 100%);
  --md-gradient-gold-hover: linear-gradient(270deg, #FBEACB 0%, #EDD29E 45%, #C99A3F 100%);

  --md-border-gold: 1px solid rgba(186, 136, 44, 0.45);
  --md-card-border: 1px solid rgba(186, 136, 44, 0.3);
  --md-radius-sm: 8px;
  --md-radius: 14px;
  --md-radius-lg: 24px;
  --md-shadow-card: 0 10px 30px rgba(6, 29, 76, 0.08);
  --md-gutter: 16px;
}

/* -------------------------------------------------------------------------
   3. Base typography – one brand font across the whole site
   ------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--md-font);
  color: var(--md-text);
  background: #fff;
  overflow-x: hidden;
}
body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad) {
  font-family: var(--md-font) !important;
}
body ::placeholder {
  font-family: var(--md-font);
}
h1, h2, h3, h4, h5, h6 {
  color: inherit;
}
a {
  transition: color .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
:focus-visible {
  outline: 2px solid var(--md-golden-dark);
  outline-offset: 2px;
}

.section_title {
  color: var(--md-navy);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  text-shadow: none;
}
@media (max-width: 992px) {
  .section_title {
    font-size: 28px;
    line-height: 1.15;
  }
}

h3 span {
  color: var(--md-golden-dark);
}

/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.md-gold-btn,
.md-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--md-gradient-gold);
  color: var(--md-navy) !important;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(186, 136, 44, 0.25);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.md-gold-btn:hover,
.md-gold-btn:focus-visible,
.md-main-btn:hover,
.md-main-btn:focus-visible {
  background: var(--md-gradient-gold-hover);
  box-shadow: 0 6px 18px rgba(186, 136, 44, 0.35);
  color: var(--md-navy) !important;
  transform: translateY(-1px);
}

.md-navy-btn,
.md-dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 24px;
  border: 1px solid var(--md-navy);
  border-radius: 999px;
  background: var(--md-navy);
  color: #fff !important;
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.md-navy-btn:hover,
.md-navy-btn:focus-visible,
.md-dark-btn:hover,
.md-dark-btn:focus-visible {
  background: var(--md-blue);
  border-color: var(--md-blue);
  color: #fff !important;
}

.md-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 24px;
  border: 1px solid var(--md-golden-dark);
  border-radius: 999px;
  background: #fff;
  color: var(--md-navy) !important;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
}
.md-secondary-btn:hover,
.md-secondary-btn:focus-visible {
  background: var(--md-golden);
  border-color: var(--md-golden);
}

.md-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--md-navy) !important;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #fff;
}
.md-pill-btn:hover,
.md-pill-btn:focus-visible {
  background: var(--md-golden);
  border-color: var(--md-golden);
}

/* -------------------------------------------------------------------------
   5. Breadcrumbs (minimal, light)
   ------------------------------------------------------------------------- */
.md-breadcrumbs {
  display: block !important;
  margin: 0 0 18px !important;
}
.md-breadcrumbs .md-breadcrumbs__list {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 2px 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.md-breadcrumbs .md-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}
.md-breadcrumbs .md-breadcrumbs__item + .md-breadcrumbs__item::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
.md-breadcrumbs a,
.md-breadcrumbs span {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-decoration: none;
  margin: 0 !important;
}
.md-breadcrumbs a:hover {
  color: var(--md-golden) !important;
}
.md-breadcrumbs span[aria-current] {
  color: rgba(255, 255, 255, 0.85) !important;
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* breadcrumbs on light backgrounds */
#profile_page__hero .md-breadcrumbs .md-breadcrumbs__item {
  color: var(--md-text-light);
}
#profile_page__hero .md-breadcrumbs span[aria-current] {
  color: var(--md-text) !important;
}
#profile_page__hero .md-breadcrumbs a:hover {
  color: var(--md-golden-dark) !important;
}

/* -------------------------------------------------------------------------
   6. Search fields
   ------------------------------------------------------------------------- */
.nav_search_container,
.home_hero_search_container,
.mobile_search_container {
  position: relative;
  display: flex;
  align-items: center;
}
.nav_search_container input,
.home_hero_search_container input,
.mobile_search_container input {
  opacity: 1 !important;
  width: 100%;
  height: 52px;
  padding: 0 52px 0 22px !important;
  border: 1px solid var(--md-golden-dark) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--md-navy) !important;
  font-size: 19px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none;
}
.nav_search_container input::placeholder,
.home_hero_search_container input::placeholder,
.mobile_search_container input::placeholder {
  color: rgba(6, 29, 76, 0.55);
  opacity: 1;
}
.nav_search_container input:focus,
.home_hero_search_container input:focus,
.mobile_search_container input:focus {
  border-color: var(--md-navy) !important;
  box-shadow: 0 0 0 3px rgba(186, 136, 44, 0.2) !important;
}
.nav_search_container i,
.home_hero_search_container i,
.mobile_search_container i {
  position: absolute !important;
  top: 50% !important;
  right: 20px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  color: var(--md-golden-dark) !important;
  font-size: 17px !important;
  z-index: 2;
  pointer-events: none;
}
.ak_autocomplete-items {
  z-index: 1050 !important;
  border-radius: 0 0 var(--md-radius) var(--md-radius);
  box-shadow: var(--md-shadow-card);
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   7. Navigation – inner pages (white bar)
   ------------------------------------------------------------------------- */
header {
  position: relative;
  z-index: 20;
}
#navbar_top {
  background-color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(6, 29, 76, 0.06);
}
#navbar_top .nav-link {
  color: var(--md-navy);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  padding: 8px 4px !important;
  white-space: nowrap;
}
#navbar_top .nav-link:hover,
#navbar_top .nav-link:focus-visible {
  color: var(--md-golden-dark);
}
#navbar_top #main_nav .full_nav__right .navbar-brand img {
  height: 120px;
  width: auto;
  max-width: none;
}
#navbar_top #main_nav .full_nav__left .full_nav__left_top {
  align-items: center;
  gap: 28px;
  margin-right: 40px;
}
#navbar_top #main_nav .full_nav__left .full_nav__left_top .nav_search_container {
  flex: 1 1 auto;
  max-width: 920px;
}
#navbar_top #main_nav .full_nav__left .full_nav__left_top .navbar-secondery-brand,
#navbar_top #main_nav .full_nav__left .full_nav__left_top .navbar-secondery-brand-merkaz {
  flex: 0 0 auto;
  max-width: 170px;
  height: auto;
  padding: 0;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#navbar_top #main_nav .full_nav__left .full_nav__left_top img {
  max-height: 38px;
  width: auto;
}
#navbar_top #main_nav .full_nav__left .navbar-nav {
  height: auto;
  margin-top: 18px;
  margin-right: 40px;
  justify-content: space-between;
  gap: 8px 22px;
  flex-wrap: wrap;
}
#navbar_top #main_nav .full_nav__left .navbar-nav .nav-item {
  height: auto;
}

/* dropdowns */
#navbar_top .navbar-nav .dropdown-menu {
  border: 0;
  border-top: 3px solid var(--md-golden-dark);
  border-radius: 0 0 var(--md-radius) var(--md-radius);
  box-shadow: 0 14px 34px rgba(6, 29, 76, 0.16);
  padding: 8px 0;
}
#navbar_top .navbar-nav .dropdown-menu .dropdown-header {
  color: var(--md-navy) !important;
  font-size: 19px;
  padding: 14px 16px;
}
#navbar_top .navbar-nav .dropdown-menu .dropdown-item {
  color: var(--md-navy);
  font-size: 18px;
  padding: 6px 16px;
  margin-bottom: 2px;
}
#navbar_top .navbar-nav .dropdown-menu .dropdown-item:hover,
#navbar_top .navbar-nav .dropdown-menu .dropdown-item:focus {
  background: rgba(247, 223, 182, 0.35);
  color: var(--md-navy);
}

/* fixed (scrolled) bar */
#navbar_top.fixed-top {
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(6, 29, 76, 0.1);
  animation: md-nav-in .3s ease;
}
#navbar_top.fixed-top .nav-link {
  color: var(--md-navy) !important;
}
#navbar_top.fixed-top .nav-link:hover {
  color: var(--md-golden-dark) !important;
}
#navbar_top.fixed-top #main_nav .full_nav__right .navbar-brand img {
  height: 84px;
}
#navbar_top.fixed-top #main_nav .full_nav__left .navbar-nav {
  margin-top: 8px;
}
#navbar_top.fixed-top .nav_search_container input {
  height: 44px;
}
@keyframes md-nav-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* desktop: medium widths – tighten menu */
@media (min-width: 993px) and (max-width: 1399px) {
  #navbar_top .nav-link {
    font-size: 17px;
  }
  #navbar_top #main_nav .full_nav__right .navbar-brand img {
    height: 100px;
  }
  #navbar_top #main_nav .full_nav__left .full_nav__left_top,
  #navbar_top #main_nav .full_nav__left .navbar-nav {
    margin-right: 24px;
  }
  #navbar_top #main_nav .full_nav__left .full_nav__left_top {
    gap: 18px;
  }
  #navbar_top #main_nav .full_nav__left .full_nav__left_top img {
    max-height: 30px;
  }
}

/* -------------------------------------------------------------------------
   8. Navigation – home page (transparent over the hero)
   ------------------------------------------------------------------------- */
#navbar_top.is_home {
  background-color: transparent;
  border-bottom: 0;
  padding: 26px 0;
}
#navbar_top.is_home #navbar_top__home-top {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 28px;
  width: 100%;
}
#navbar_top.is_home #navbar_top__home-top .navbar-brand {
  margin: 0 !important;
  flex: 0 0 auto;
}
#navbar_top.is_home #navbar_top__home-top .navbar-brand img {
  height: 112px;
  width: auto;
  max-width: none;
}
#navbar_top.is_home #navbar_top__home-top .navbar-nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 0 30px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 0;
}
#navbar_top.is_home #navbar_top__home-top {
  height: 100%;
}
@media (min-width: 993px) {
  /* fixed height so the hero (pulled up under the bar) always lines up */
  #navbar_top.is_home:not(.fixed-top) {
    height: 164px;
  }
}
#navbar_top.is_home .nav-link {
  color: #fff;
  font-weight: 700;
}
#navbar_top.is_home .nav-link:hover,
#navbar_top.is_home .nav-link:focus-visible {
  color: var(--md-golden);
}
#navbar_top.is_home #navbar_top__home-top .nav_search_container--home {
  flex: 0 0 320px;
}
#navbar_top.is_home #navbar_top__home-top .nav_search_container--home input {
  opacity: 1;
  height: 46px;
  border-color: #fff !important;
}
#navbar_top.is_home.fixed-top {
  background-color: #fff !important;
  padding: 8px 0;
}
@media (min-width: 993px) and (max-width: 1399px) {
  #navbar_top.is_home #navbar_top__home-top {
    gap: 18px;
  }
  #navbar_top.is_home #navbar_top__home-top .navbar-brand img {
    height: 92px;
  }
  #navbar_top.is_home #navbar_top__home-top .navbar-nav {
    gap: 0 16px;
  }
  #navbar_top.is_home #navbar_top__home-top .nav-link {
    font-size: 16px;
  }
  #navbar_top.is_home #navbar_top__home-top .nav_search_container--home {
    flex-basis: 220px;
  }
  #navbar_top.is_home #navbar_top__home-top .nav_search_container--home input {
    font-size: 16px !important;
  }
}

/* -------------------------------------------------------------------------
   9. Navigation – mobile
   ------------------------------------------------------------------------- */
@media (max-width: 992px) {
  #navbar_top,
  #navbar_top.is_home {
    padding: 10px 0;
  }
  #navbar_top > .container-fluid {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    padding-left: var(--md-gutter);
    padding-right: var(--md-gutter);
  }
  .navbar-brand__mobile {
    height: 64px;
    margin: 0 auto !important;
  }
  #navbar_top.is_home .navbar-brand__mobile {
    height: 76px;
  }
  #navbar_top .navbar-toggler,
  #nav_search_mobile_trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  #navbar_top .navbar-toggler i,
  #nav_search_mobile_trigger i {
    font-size: 24px !important;
    color: var(--md-navy) !important;
  }
  #navbar_top.is_home:not(.fixed-top) .navbar-toggler i,
  #navbar_top.is_home:not(.fixed-top) #nav_search_mobile_trigger i {
    color: #fff !important;
  }
  #navbar_top.fixed-top .navbar-brand__mobile {
    height: 52px;
  }
  #navbar_top.fixed-top #nav_search_mobile_trigger,
  #navbar_top.fixed-top .navbar-toggler {
    order: initial;
    margin: 0;
  }
}

/* off-canvas mobile menu */
#main_nav_mobile {
  background: #fff;
}
#main_nav_mobile .full_nav__right {
  justify-content: center;
  padding: 18px 0 10px;
  border-bottom: 3px solid var(--md-golden-dark);
  background: var(--md-gradient-navy-diag);
}
#main_nav_mobile .full_nav__right .navbar-brand__mobile {
  height: 86px;
  display: block;
}
#main_nav_mobile .full_nav__right .navbar-brand__mobile img {
  margin: 0;
}
#main_nav_mobile .navbar-nav .nav-link,
.navbar-submenu .navbar-nav .nav-link {
  color: var(--md-navy);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(6, 29, 76, 0.08);
  position: relative;
}
#main_nav_mobile .navbar-nav .nav-link.submenu-toggle::after {
  content: "\f104";
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--md-golden-dark);
  font-size: 18px;
}
#main_nav_mobile .navbar-nav .nav-link:hover,
.navbar-submenu .navbar-nav .nav-link:hover {
  color: var(--md-golden-dark);
  background: rgba(247, 223, 182, 0.18);
}
.mobile_child_nav__header {
  color: var(--md-navy);
  font-weight: 700 !important;
  font-size: 22px;
  background: rgba(247, 223, 182, 0.35);
}
.mobile_child_nav__header i {
  color: var(--md-navy);
}
#navbar_top .navbar-toggler:not(.collapsed) {
  left: var(--md-gutter);
}

/* mobile search off-canvas */
#offcanvas_mobile_serach .offcanvas-header {
  gap: 12px;
  padding: 16px var(--md-gutter);
  background: var(--md-gradient-navy-diag);
}
#offcanvas_mobile_serach .mobile_search_container {
  flex: 1 1 auto;
}
#offcanvas_mobile_serach .btn-close {
  filter: invert(1);
  opacity: .9;
  margin: 0;
}

/* -------------------------------------------------------------------------
   10. Home hero
   ------------------------------------------------------------------------- */
#home-page {
  margin-top: -164px;
}
#home-page #home_hero__container {
  position: relative;
  min-height: 763px;
  padding: 0 !important;
  background-color: transparent;
  background-image: url("../img/redesign/hero-bg.png");
  background-image: image-set(url("../img/redesign/hero-bg.webp") type("image/webp"), url("../img/redesign/hero-bg.png") type("image/png"));
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}
#home-page #home_hero__container #home_hero__content {
  position: relative;
  z-index: 1;
  padding: 214px var(--md-gutter) 150px;
  text-align: center;
  color: #fff;
}
#home-page #home_hero__container .home_hero__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
#home-page #home_hero__container .home_hero__laurel {
  flex: 0 0 auto;
  width: 132px;
  height: auto;
  user-select: none;
  pointer-events: none;
}
#home-page #home_hero__container #home_hero__content .home_hero__main_title {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: 88px;
  line-height: .95;
  font-weight: 400;
}
#home-page #home_hero__container #home_hero__content .home_hero__main_title .home_hero__main_title_regular {
  display: block;
  font-weight: 400;
}
#home-page #home_hero__container #home_hero__content .home_hero__main_title .home_hero__main_title_highlighted {
  display: block;
  font-weight: 700;
  color: #fff;
}
#home-page #home_hero__container #home_hero__content .home_hero__subtitle {
  margin: 18px auto 0;
  max-width: 760px;
  color: var(--md-golden);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 400;
}
#home-page #home_hero__container #home_hero__content #home_hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 30px;
  padding: 34px 0 0;
}
#home-page #home_hero__container #home_hero__content #home_hero__logos img {
  height: 42px;
  width: auto;
  max-width: 220px;
  margin: 0 !important;
  object-fit: contain;
}
.home_hero_search_wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: -36px;
  margin-bottom: 20px;
}
.home_hero_search_wrap .home_hero_search_container {
  width: 100%;
  max-width: 920px;
}
.home_hero_search_wrap .home_hero_search_container input {
  height: 62px;
  font-size: 21px !important;
  box-shadow: 0 10px 30px rgba(6, 29, 76, 0.08) !important;
}

@media (max-width: 1399px) {
  #home-page #home_hero__container {
    min-height: 680px;
  }
  #home-page #home_hero__container #home_hero__content {
    padding-top: 180px;
    padding-bottom: 140px;
  }
  #home-page #home_hero__container #home_hero__content .home_hero__main_title {
    font-size: 72px;
  }
  #home-page #home_hero__container .home_hero__laurel {
    width: 108px;
  }
}
@media (max-width: 992px) {
  #home-page {
    margin-top: -96px;
  }
  #home-page #home_hero__container {
    min-height: 0;
    background-size: auto 100%;
  }
  #home-page #home_hero__container #home_hero__content {
    padding: 128px var(--md-gutter) 96px;
  }
  #home-page #home_hero__container .home_hero__headline {
    gap: 10px;
  }
  #home-page #home_hero__container .home_hero__laurel {
    width: 56px;
  }
  #home-page #home_hero__container #home_hero__content .home_hero__main_title,
  #home_hero__container #home_hero__content .home_hero__main_title {
    font-size: 44px !important;
    line-height: .98 !important;
  }
  #home-page #home_hero__container #home_hero__content .home_hero__subtitle,
  #home_hero__container #home_hero__content .home_hero__subtitle {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }
  #home-page #home_hero__container #home_hero__content #home_hero__logos {
    gap: 12px 20px;
    padding-top: 24px;
  }
  #home-page #home_hero__container #home_hero__content #home_hero__logos img,
  #home_hero__container #home_hero__content #home_hero__logos img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
  }
  .home_hero_search_wrap {
    margin-top: -26px;
    padding-left: var(--md-gutter);
    padding-right: var(--md-gutter);
  }
  .home_hero_search_wrap .home_hero_search_container input {
    height: 54px;
    font-size: 19px !important;
  }
}
@media (max-width: 420px) {
  #home-page #home_hero__container .home_hero__laurel {
    width: 42px;
  }
  #home-page #home_hero__container #home_hero__content .home_hero__main_title,
  #home_hero__container #home_hero__content .home_hero__main_title {
    font-size: 38px !important;
  }
}

/* -------------------------------------------------------------------------
   11. Rating page header ("Category header")
   ------------------------------------------------------------------------- */
#rating_page_hero {
  background: var(--md-gradient-navy);
  box-shadow: none;
  color: #fff;
  overflow: hidden;
}
#rating_page_hero .container-fluid.rating_page_hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "content card"
    "actions method";
  align-items: end;
  column-gap: 48px;
  padding: 46px 32px;
}
#rating_page_hero #rating_page_hero__content {
  grid-area: content;
  padding: 0;
  align-self: start;
  min-width: 0;
}
#rating_page_hero .rating_page_hero__title {
  margin: 0;
  color: var(--md-golden);
  font-weight: 700;
  font-size: 70px;
  line-height: 1;
  max-width: 1100px;
}
#rating_page_hero #rating_page_hero__content .rating_page_hero__desc {
  margin: 20px 0 0;
  max-width: 1100px;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
}
#rating_page_hero .rating_page_hero__desc_lead {
  display: block;
  font-weight: 700;
}
#rating_page_hero .rating_page_hero__desc_rest {
  font-weight: 400;
  opacity: .92;
}
#rating_page_hero .rating_page_hero__note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 19px;
}

/* city / mayor card */
#rating_page_hero #rating_page_hero__city_container {
  grid-area: card;
  align-self: start;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  width: 412px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--md-radius-lg);
  background: #fff;
  overflow: hidden;
  color: var(--md-navy);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}
#rating_page_hero #rating_page_hero__city_container .mayor_photo {
  flex: 0 0 48%;
  height: auto;
  margin: 0;
  background: var(--md-golden);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
#rating_page_hero #rating_page_hero__city_container .mayor_photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 272px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}
#rating_page_hero #rating_page_hero__city_container .rating_page_hero__city_container__content {
  flex: 1 1 auto;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 18px;
  text-align: center;
}
#rating_page_hero #rating_page_hero__city_container .rating_page_hero__city_container__content__title {
  margin: 0;
  color: var(--md-navy);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
}
#rating_page_hero #rating_page_hero__city_container .rating_page_hero__city_container__content__desc {
  margin: 0;
  color: var(--md-navy);
  font-size: 22px;
  line-height: 1.2;
}
#rating_page_hero #rating_page_hero__city_container .rating_page_hero__city_container__content__actions {
  margin-top: 26px;
}
#rating_page_hero #rating_page_hero__city_container .md-navy-btn {
  font-size: 20px;
  min-height: 40px;
  padding: 6px 22px;
}

/* filters (areas of expertise / years / architect types) */
#rating_page_hero #rating_page_hero__actions {
  grid-area: actions;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 34px 0 0;
  min-width: 0;
}
#rating_page_hero #rating_page_hero__areas_of_expertise,
#rating_page_hero #rating_page_hero__year_filter {
  min-width: 0;
  max-width: 100%;
}
#rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list,
#rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list,
#rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__children {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0;
  width: auto;
}
#rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__children {
  margin-top: 14px;
  gap: 10px 12px;
  justify-content: flex-start;
}
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list__item,
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list__item,
body #rating_page_hero #rating_page_hero__actions .injected_js_button,
body #rating_page_hero #rating_page_hero__actions .injected_js_button_active {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 40px;
  margin: 0;
  padding: 6px 20px;
  border: 1px solid rgba(247, 223, 182, 0.9);
  border-radius: 10px;
  background: transparent;
  color: var(--md-golden);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list__item:hover,
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list__item:hover,
body #rating_page_hero #rating_page_hero__actions .injected_js_button:hover {
  background: rgba(247, 223, 182, 0.12);
  color: #fff;
}
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list__item.md-light-btn,
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list__item.md-light-btn {
  border-color: transparent;
  background: var(--md-gradient-gold);
  color: var(--md-navy);
  font-weight: 700;
}
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list__item.md-light-btn::after,
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list__item.md-light-btn::after {
  display: none;
}
/* architect type that is currently selected */
body #rating_page_hero #rating_page_hero__actions .injected_js_button_active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
}
body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list__item--child {
  min-width: 0;
  min-height: 34px;
  padding: 4px 16px;
  font-size: 19px;
  border-color: rgba(247, 223, 182, 0.55);
}

/* methodology link */
#rating_page_hero .rating_page_hero__methodology {
  grid-area: method;
  justify-self: end;
  align-self: end;
  margin-top: 34px;
}
#rating_page_hero .md-pill-btn {
  min-width: 240px;
}

/* large-but-not-huge desktops */
@media (max-width: 1399px) {
  #rating_page_hero .rating_page_hero__title {
    font-size: 58px;
  }
  #rating_page_hero #rating_page_hero__content .rating_page_hero__desc {
    font-size: 26px;
  }
  #rating_page_hero #rating_page_hero__city_container {
    width: 372px;
  }
}

/* tablets & phones */
@media (max-width: 992px) {
  #rating_page_hero .container-fluid.rating_page_hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "content"
      "card"
      "actions"
      "method";
    padding: 26px var(--md-gutter) 28px;
    column-gap: 0;
  }
  #rating_page_hero .md-breadcrumbs {
    margin-bottom: 12px !important;
  }
  #rating_page_hero .md-breadcrumbs .md-breadcrumbs__item {
    font-size: 15px;
  }
  #rating_page_hero .rating_page_hero__title {
    font-size: 40px;
    line-height: 1.02;
  }
  #rating_page_hero #rating_page_hero__content .rating_page_hero__desc {
    margin-top: 12px;
    font-size: 21px;
    line-height: 1.2;
  }
  #rating_page_hero .rating_page_hero__desc_lead {
    display: block;
    margin: 0 0 2px;
  }
  #rating_page_hero .rating_page_hero__note {
    font-size: 17px;
  }

  #rating_page_hero #rating_page_hero__city_container {
    width: 100%;
    max-width: 440px;
    margin: 22px 0 0;
    border-radius: var(--md-radius);
  }
  #rating_page_hero #rating_page_hero__city_container .mayor_photo {
    flex-basis: 40%;
  }
  #rating_page_hero #rating_page_hero__city_container .mayor_photo img {
    max-height: 190px;
  }
  #rating_page_hero #rating_page_hero__city_container .rating_page_hero__city_container__content {
    padding: 16px 12px;
  }
  #rating_page_hero #rating_page_hero__city_container .rating_page_hero__city_container__content__title {
    font-size: 24px;
  }
  #rating_page_hero #rating_page_hero__city_container .rating_page_hero__city_container__content__desc {
    font-size: 19px;
  }
  #rating_page_hero #rating_page_hero__city_container .rating_page_hero__city_container__content__actions {
    margin-top: 14px;
  }
  #rating_page_hero #rating_page_hero__city_container .md-navy-btn {
    font-size: 18px;
    min-height: 38px;
  }

  /* filters become a horizontal, swipeable row */
  #rating_page_hero #rating_page_hero__actions {
    display: block;
    margin: 22px calc(-1 * var(--md-gutter)) 0 !important;
  }
  #rating_page_hero #rating_page_hero__areas_of_expertise,
  #rating_page_hero #rating_page_hero__year_filter {
    width: 100%;
  }
  #rating_page_hero #rating_page_hero__year_filter + #rating_page_hero__year_filter,
  #rating_page_hero #rating_page_hero__areas_of_expertise + #rating_page_hero__year_filter {
    margin-top: 10px;
  }
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__children {
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px var(--md-gutter) 6px;
    scroll-padding: 0 var(--md-gutter);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list::-webkit-scrollbar,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list::-webkit-scrollbar,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__children::-webkit-scrollbar {
    display: none;
  }
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__children {
    margin-top: 8px;
  }
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list .rating_page_hero__areas_of_expertise__list__item,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list .rating_page_hero__year_filter__list__item,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list .injected_js_button,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list .injected_js_button_active,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__children .rating_page_hero__areas_of_expertise__list__item--child {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 40px;
    padding: 6px 18px;
    font-size: 20px;
    border: 1px solid rgba(247, 223, 182, 0.9);
    border-radius: 10px;
    scroll-snap-align: start;
  }
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__children .rating_page_hero__areas_of_expertise__list__item--child {
    min-height: 34px;
    font-size: 18px;
    border-color: rgba(247, 223, 182, 0.55);
  }
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__list .rating_page_hero__areas_of_expertise__list__item.md-light-btn,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list .rating_page_hero__year_filter__list__item.md-light-btn,
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__areas_of_expertise__children .rating_page_hero__areas_of_expertise__list__item--child.md-light-btn {
    border-color: transparent;
    background: var(--md-gradient-gold) !important;
    color: var(--md-navy);
  }
  body #rating_page_hero #rating_page_hero__actions .rating_page_hero__year_filter__list .injected_js_button_active {
    border-color: #fff;
  }

  #rating_page_hero .rating_page_hero__methodology {
    justify-self: start;
    margin-top: 18px;
  }
  #rating_page_hero .md-pill-btn {
    min-width: 0;
    font-size: 18px;
    min-height: 38px;
    padding: 6px 22px;
  }
}

/* -------------------------------------------------------------------------
   12. General page header (about, articles, contact, plain pages)
   ------------------------------------------------------------------------- */
body .general_page .general_page_hero,
body #contact_page .general_page_hero,
body #articles_page .general_page_hero {
  background: var(--md-gradient-navy) !important;
  box-shadow: none !important;
  color: #fff;
  padding: 0 !important;
}
.general_page .general_page_hero .container-fluid {
  padding-top: 46px;
  padding-bottom: 50px;
}
.general_page .general_page_hero #general_page_hero__content {
  padding: 0 !important;
}
.general_page .general_page_hero .general_page_hero__title {
  margin: 0;
  color: var(--md-golden) !important;
  font-weight: 700;
  font-size: 70px;
  line-height: 1;
}
@media (max-width: 1399px) {
  .general_page .general_page_hero .general_page_hero__title {
    font-size: 58px;
  }
}
@media (max-width: 992px) {
  .general_page .general_page_hero .container-fluid {
    padding: 26px var(--md-gutter) 30px;
  }
  .general_page .general_page_hero .general_page_hero__title {
    font-size: 40px !important;
    line-height: 1.05 !important;
  }
}

/* -------------------------------------------------------------------------
   13. Cards (home sliders: lawyers, architects, appraisers, cities)
   ------------------------------------------------------------------------- */
body #home-page #home_rating__companies #companies_ratings_slider .md-firm-card,
body #home-page #home_rating__lawyers #lawyers_ratings_slider .md-firm-card,
body #home-page #home_rating__architects #architects_ratings_slider .md-firm-card,
body #home-page #home_rating__appraisers #appraisers_ratings_slider .md-firm-card {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-flow: column nowrap;
  width: 520px !important;
  height: auto !important;
  max-height: none !important;
  min-height: 270px;
  margin: 0 0 0 24px !important;
  padding: 0 !important;
  border: 1px solid rgba(186, 136, 44, 0.55) !important;
  border-radius: var(--md-radius-lg) !important;
  background: var(--md-navy) !important;
  box-shadow: var(--md-shadow-card) !important;
  overflow: hidden;
  text-align: right;
  justify-content: flex-start !important;
}
#home-page .home_rating_section__container .slick-track {
  display: flex !important;
}
#home-page .home_rating_section__container .slick-slide {
  height: auto !important;
}
.md-firm-card .md-firm-card__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 12px 28px;
  background: #fff;
}
.md-firm-card .md-firm-card__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.md-firm-card .md-firm-card__logo--photo {
  height: 170px;
  padding: 0;
}
.md-firm-card .md-firm-card__logo--photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.md-firm-card .md-firm-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 32px 24px;
  color: #fff;
}
.md-firm-card .md-firm-card__title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
}
.md-firm-card .md-firm-card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.md-firm-card .md-firm-card__label {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.1;
}
.md-firm-card .md-firm-card__tags {
  display: flex;
  flex-flow: row wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.md-firm-card .md-firm-card__tags li {
  margin: 0;
  padding: 3px 16px;
  border: 1px solid rgba(247, 223, 182, 0.9);
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}
.md-firm-card .md-firm-card__list {
  margin: 0;
  padding: 0 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.35;
}
.md-firm-card .md-firm-card__list li::marker {
  color: var(--md-golden-dark);
}
.md-firm-card .md-firm-card__btn {
  align-self: flex-end;
  margin-top: auto;
  min-height: 42px;
  font-size: 20px;
  padding: 6px 26px;
}
.md-firm-card .md-firm-card__body > :nth-last-child(2) {
  margin-bottom: 14px;
}

/* sliders: arrows & spacing */
#home-page .home_rating_section__container .section_content {
  position: relative;
}
.slick-arrow {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 1px solid rgba(186, 136, 44, 0.6) !important;
  box-shadow: 0 6px 18px rgba(6, 29, 76, 0.12);
  z-index: 3;
}
.slick-arrow:before {
  color: var(--md-navy) !important;
  opacity: 1 !important;
}
.slick-arrow:hover {
  background: var(--md-golden) !important;
}

@media (max-width: 992px) {
  body #home-page #home_rating__companies #companies_ratings_slider .md-firm-card,
  body #home-page #home_rating__lawyers #lawyers_ratings_slider .md-firm-card,
  body #home-page #home_rating__architects #architects_ratings_slider .md-firm-card,
  body #home-page #home_rating__appraisers #appraisers_ratings_slider .md-firm-card {
    width: min(84vw, 360px) !important;
    min-height: 0;
    margin: 0 0 0 12px !important;
    border-radius: 18px !important;
  }
  .md-firm-card .md-firm-card__logo {
    height: 78px;
    padding: 10px 20px;
  }
  .md-firm-card .md-firm-card__logo--photo {
    height: 150px;
    padding: 0;
  }
  .md-firm-card .md-firm-card__body {
    padding: 16px 20px 20px;
    gap: 6px;
  }
  .md-firm-card .md-firm-card__title {
    font-size: 24px;
  }
  .md-firm-card .md-firm-card__text {
    font-size: 17px;
  }
  .md-firm-card .md-firm-card__tags li {
    font-size: 15px;
    padding: 2px 12px;
  }
  .md-firm-card .md-firm-card__btn {
    font-size: 18px;
    min-height: 40px;
  }
  #home-page #home_rating__lawyers #lawyers_ratings_slider,
  #home-page #home_rating__architects #architects_ratings_slider,
  #home-page #home_rating__appraisers #appraisers_ratings_slider,
  #home-page #home_rating__companies #companies_ratings_slider {
    width: 100% !important;
  }
  .slick-arrow {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------
   14. Home – "what will you find here" (palette alignment)
   ------------------------------------------------------------------------- */
#home-page #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card {
  border: 1px solid rgba(186, 136, 44, 0.45);
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-card);
  overflow: hidden;
}
#home-page #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card .what_will_you_find_here__card_title,
#home-page #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card .what_will_you_find_here__card_title a {
  color: var(--md-navy);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}
#home-page #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card .what_will_you_find_here__card_title a:hover {
  color: var(--md-golden-dark);
}
#home-page #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card .what_will_you_find_here__card_text {
  color: var(--md-text-light);
  font-size: 19px;
  line-height: 1.3;
}
@media (max-width: 992px) {
  #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card {
    border-radius: var(--md-radius) !important;
    margin-bottom: 10px !important;
  }
  #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card .what_will_you_find_here__card_title,
  #home-page #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card .what_will_you_find_here__card_title a {
    font-size: 21px !important;
    line-height: 1.1 !important;
  }
  #what_will_you_find_here__container #what_will_you_find_here__content #what_will_you_find_here__cards .what_will_you_find_here__card .what_will_you_find_here__card_text {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }
}

/* -------------------------------------------------------------------------
   15. Footer – contact section
   ------------------------------------------------------------------------- */
footer {
  background: var(--md-navy);
}
footer #footer_contact_form__container {
  position: relative;
  background: linear-gradient(180deg, #131C7E 0%, #0D1D66 45%, #061D4C 100%) !important;
  background-blend-mode: normal;
  color: #fff;
  overflow: hidden;
  padding-bottom: clamp(170px, 19vw, 340px);
}
footer #footer_contact_form__form {
  position: relative;
  z-index: 2;
  padding-top: 90px;
}
footer .footer_contact_form__inner {
  width: 72%;
  max-width: 1320px;
}
footer #footer_contact_form__container #footer_contact_form__title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 62px;
  line-height: 1;
}
footer #footer_contact_form__container #footer_contact_form__top_title {
  margin: 10px 0 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
  opacity: .92;
}
footer #footer_contact_form {
  margin-top: 56px;
}
footer #footer_contact_form .form_row {
  gap: 0 18px;
}
footer #footer_contact_form .form_row .md_col {
  margin: 0 0 16px !important;
}
footer #footer_contact_form .form_row .form_action {
  margin-bottom: 16px;
}
footer #footer_contact_form .form-floating > .form-control {
  height: 62px;
  min-height: 62px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--md-navy);
  font-size: 20px;
}
footer #footer_contact_form .form-floating > .form-control:focus {
  box-shadow: 0 0 0 3px rgba(247, 223, 182, 0.6);
}
footer #footer_contact_form .form-floating > label {
  color: rgba(6, 29, 76, 0.6);
  font-size: 19px;
  padding: 1rem 1rem;
}
footer #footer_contact_form .form_row .form_action button[type="submit"] {
  width: 100%;
  height: 62px;
  max-height: none;
  border: 0;
  border-radius: 10px;
  background: var(--md-gradient-gold);
  color: var(--md-navy) !important;
  font-weight: 700;
  font-size: 24px;
}
footer #footer_contact_form .form_row .form_action button[type="submit"]:hover {
  background: var(--md-gradient-gold-hover);
}
footer #footer_contact_form .invalid-feedback {
  color: #ffb3c0;
  font-size: 16px;
}
footer #footer_contact_form .checkbox-wrapper-40 label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
footer #footer_contact_form .checkbox-wrapper-40 input[type="checkbox"] {
  border-color: #fff;
  background: #fff;
  border-radius: 6px;
}

/* decorative curve + badge */
footer .footer_contact_form__decor {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 61%;
  max-width: 1160px;
  pointer-events: none;
}
footer .footer_contact_form__curve {
  display: block;
  overflow: hidden;
  width: 100%;
  height: auto;
}
footer .footer_contact_form__badge {
  position: absolute;
  left: 3.5%;
  bottom: 8%;
  width: 21%;
  max-width: 240px;
  height: auto;
}

@media (max-width: 1399px) {
  footer #footer_contact_form__container #footer_contact_form__title {
    font-size: 50px;
  }
  footer #footer_contact_form__container #footer_contact_form__top_title {
    font-size: 28px;
  }
  footer .footer_contact_form__inner {
    width: 76%;
  }
}
@media (max-width: 992px) {
  footer #footer_contact_form__container {
    padding-bottom: min(54vw, 320px);
  }
  footer #footer_contact_form__form {
    padding: 54px var(--md-gutter) 0 !important;
  }
  footer .footer_contact_form__inner {
    width: 100%;
  }
  footer #footer_contact_form__container #footer_contact_form__title {
    font-size: 36px !important;
    line-height: 1.05 !important;
  }
  footer #footer_contact_form__container #footer_contact_form__top_title {
    font-size: 21px !important;
    line-height: 1.25 !important;
    margin: 10px 0 0 !important;
  }
  footer #footer_contact_form {
    margin-top: 28px;
  }
  footer #footer_contact_form .form_row .md_col {
    margin-bottom: 12px !important;
  }
  footer #footer_contact_form .form-floating > .form-control,
  footer #footer_contact_form .form_row .form_action button[type="submit"] {
    height: 56px;
    min-height: 56px;
  }
  footer #footer_contact_form .checkbox-wrapper-40 label {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
  footer .footer_contact_form__decor {
    width: min(100%, 620px);
  }
  footer .footer_contact_form__badge {
    width: 22%;
    bottom: 6%;
  }
}

/* -------------------------------------------------------------------------
   16. Footer – bottom (links, logos, legal)
   ------------------------------------------------------------------------- */
footer #footer_links_columns {
  border-bottom: 1px solid rgba(247, 223, 182, 0.18);
}
footer #footer_links_columns .footer_links_column__title {
  color: var(--md-golden);
  font-size: 22px;
  border-bottom-color: rgba(247, 223, 182, 0.2);
}
footer #footer_links_columns .footer_links_column ul li a {
  font-size: 17px;
}
footer #footer_links_columns .footer_links_column ul li a:hover {
  color: var(--md-golden);
}
footer #footer_content_container #footer_content {
  font-size: 16px;
}
footer #footer_content_container #footer_bottom_row,
footer #footer_content_container #footer_bottom_row a {
  font-size: 16px;
}
footer #footer_content_container #footer_bottom_row a:hover {
  color: var(--md-golden);
}
@media (max-width: 992px) {
  footer #footer_links_columns {
    padding: 24px var(--md-gutter);
  }
  footer #footer_links_columns .footer_links_column__title {
    font-size: 20px;
  }
  footer #footer_content_container #footer_bottom_row > div {
    flex-flow: column nowrap !important;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  footer #footer_content_container #footer_bottom_row > div > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    text-align: center !important;
  }
}

/* -------------------------------------------------------------------------
   17. Rating results (table + mobile accordion) – palette & legibility
   ------------------------------------------------------------------------- */
.rating_page .rating_page__content_container #rating_page__results thead tr {
  color: var(--md-navy);
  font-size: 22px;
  line-height: 1.1;
  border-bottom: 4px solid rgba(186, 136, 44, 0.35);
}
.rating_page .rating_page__content_container #rating_page__results thead .rating_page__results__total_count {
  font-size: 18px;
  color: var(--md-text-light);
}
.rating_page .rating_page__content_container #rating_page__results tbody tr {
  color: var(--md-text);
  font-size: 21px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(6, 29, 76, 0.1);
}
.rating_page .rating_page__content_container #rating_page__results tbody tr:hover {
  background: rgba(247, 223, 182, 0.22);
}
#rating_page__results .rating_grid_cell,
#rating_page__results .lawyer_grid_cell {
  font-size: 22px !important;
}
#rating_page__results .long_td_fix {
  font-size: 22px;
  font-weight: 700;
  color: var(--md-navy);
}
.rating_page .rating_page__content_container #rating_page__results tbody .rating_page__result__rating_symbol p {
  color: var(--md-golden-dark);
  font-size: 30px;
  line-height: 1;
}
#rating_page__results .rating_row__arrow,
#rating_page__results .lawyer_row__arrow {
  color: var(--md-navy);
}
#rating_page__results .rating_row__arrow:hover,
#rating_page__results .lawyer_row__arrow:hover {
  color: var(--md-golden-dark);
}
.rating_page .lawyer_stats_caption {
  font-size: 18px;
  color: var(--md-text-light);
  padding: 14px 32px 0;
}
/* expanded info panel */
.rating_page .info_conatiner,
.rating_page .info_conatiner p,
.rating_page .info_conatiner li,
.rating_page .info_conatiner a,
.rating_page .info_conatiner span {
  font-size: 18px;
  line-height: 1.3;
}
.rating_page .info_conatiner h3 {
  color: var(--md-navy);
  font-size: 22px;
  font-weight: 700;
}
.rating_page .info_conatiner .value {
  color: var(--md-navy);
  font-weight: 700;
}
.rating_page .info_conatiner a {
  color: var(--md-navy);
}

@media (max-width: 992px) {
  .rating_page .lawyer_stats_caption {
    padding: 12px var(--md-gutter) 0;
    font-size: 16px;
  }
  #rating_page__results__mobile .accordion-header {
    gap: 8px;
  }
  #rating_page__results__mobile .accordion-header .accordion_rating_num {
    color: var(--md-golden-dark);
    font-weight: 700;
    font-size: 24px !important;
    line-height: 1;
  }
  #rating_page__results__mobile .accordion-header .md-main-btn,
  .accordion-header > a.md-main-btn {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 4px 14px;
    font-size: 16px;
    box-shadow: none;
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #rating_page__results__mobile .accordion-button {
    min-width: 0;
  }
  #rating_page__results__mobile .accordion-button:not(.collapsed) {
    background: rgba(247, 223, 182, 0.25);
    box-shadow: none;
  }
  #rating_page__results__mobile .accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(186, 136, 44, 0.35);
  }
  .rating_page .info_conatiner,
  .rating_page .info_conatiner p,
  .rating_page .info_conatiner li,
  .rating_page .info_conatiner a,
  .rating_page .info_conatiner span {
    font-size: 17px;
  }

  /* lawyers: mobile area picker (trigger + bottom drawer) */
  #rating_page_hero .areas-mobile-trigger {
    min-height: 46px;
    padding: 6px 18px;
    border: 1px solid rgba(247, 223, 182, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--md-golden);
    font-size: 20px;
    font-weight: 700;
  }
  #rating_page_hero .areas-mobile-trigger__chev {
    border-top-color: var(--md-golden);
  }
  #rating_page_hero #rating_page_hero__areas_of_expertise {
    padding: 0 var(--md-gutter);
  }
  .areas-mobile-drawer__title {
    color: var(--md-navy);
    font-size: 21px;
  }
  .areas-mobile-option {
    color: var(--md-navy);
    font-size: 19px;
    border-color: rgba(6, 29, 76, 0.12);
  }
  .areas-mobile-option[aria-current="true"] {
    border-color: var(--md-golden-dark);
    background: rgba(247, 223, 182, 0.35);
  }
  .areas-mobile-option--child {
    font-size: 17px;
  }
}
#rating_page__results .lawyer_rep_split__row {
  font-size: 19px !important;
}

/* general pages – content typography */
.general_page .general_page_hero .general_page_hero__title {
  text-align: right;
}
#articles_page .general_page_hero .general_page_hero__title,
#contact_page .general_page_hero .general_page_hero__title {
  text-align: center;
}
#articles_page .general_page_hero .md-breadcrumbs .md-breadcrumbs__list,
#contact_page .general_page_hero .md-breadcrumbs .md-breadcrumbs__list {
  justify-content: flex-start;
}
.general_page .generic-content {
  font-size: 20px;
  line-height: 1.45;
  color: var(--md-text);
}
.general_page .generic-content p,
.general_page .generic-content li {
  font-size: 20px;
  line-height: 1.45;
}
.general_page .generic-content h2,
.general_page .generic-content h3,
.general_page .generic-content h4 {
  color: var(--md-navy);
  font-weight: 700;
}
.general_page .generic-content h2 { font-size: 34px; }
.general_page .generic-content h3 { font-size: 28px; }
.general_page .generic-content a {
  color: var(--md-golden-dark);
}
.general_page .generic-content a:hover {
  color: var(--md-navy);
}
@media (max-width: 992px) {
  .general_page .generic-content,
  .general_page .generic-content p,
  .general_page .generic-content li {
    font-size: 18px;
  }
  .general_page .generic-content h2 { font-size: 28px; }
  .general_page .generic-content h3 { font-size: 24px; }
  .general_page .generic-content {
    padding-left: var(--md-gutter);
    padding-right: var(--md-gutter);
  }
}

/* -------------------------------------------------------------------------
   18. Profile pages (company / lawyer / architect / appraiser)
   ------------------------------------------------------------------------- */
body #profile_page__hero {
  background: var(--md-gradient-navy) !important;
  overflow: hidden;
  box-shadow: none !important;
  color: #fff;
}
body #profile_page__hero .md-breadcrumbs .md-breadcrumbs__item {
  color: rgba(255, 255, 255, 0.6);
}
body #profile_page__hero .md-breadcrumbs span[aria-current] {
  color: rgba(255, 255, 255, 0.85) !important;
}
body #profile_page__hero .md-breadcrumbs a:hover {
  color: var(--md-golden) !important;
}
body #profile_page__hero .profile_page__hero__title {
  color: var(--md-golden) !important;
  font-weight: 700 !important;
  font-size: 58px !important;
  line-height: 1.02 !important;
}
body #profile_page__hero #profile_page__hero__areas_of_expertise h3 {
  color: #fff !important;
  font-size: 20px !important;
}
body #profile_page__hero #profile_page__hero__areas_of_expertise__container .profile_page__hero__area_of_expertise {
  border-color: rgba(247, 223, 182, 0.9) !important;
  color: var(--md-golden) !important;
  font-size: 18px !important;
}
body #profile_page__hero #profile_page__hero__areas_of_expertise__container .profile_page__hero__area_of_expertise * {
  color: inherit !important;
}
body #profile_page__hero .profile_page__hero_divider {
  border-color: rgba(247, 223, 182, 0.4);
  opacity: 1;
}
body #profile_page__hero #profile_page__hero_contact_details .profile_page__hero_contact_detaile_row__title,
body #profile_page__hero #profile_page__hero_contact_details .profile_page__hero_contact_detaile_row__value {
  color: #fff !important;
  font-size: 19px !important;
  line-height: 1.3 !important;
}
body #profile_page__hero #profile_page__hero_contact_details .profile_page__hero_contact_detaile_row__title {
  color: rgba(255, 255, 255, 0.7) !important;
}
body #profile_page__hero #profile_page__hero_contact_details a.profile_page__hero_contact_detaile_row__value:hover {
  color: var(--md-golden) !important;
}
body #profile_page__hero #profile_page__hero_contact_details .profile_page__hero_contact_detaile_row__icon {
  filter: brightness(0) invert(1);
}
body #profile_page__hero #profile_page__hero__contact_sidebar_toggle_btn {
  font-size: 20px;
}

@media (max-width: 1399px) {
  body #profile_page__hero .profile_page__hero__title {
    font-size: 48px !important;
  }
}
@media (max-width: 992px) {
  body #profile_page__hero {
    background: var(--md-gradient-navy-diag) !important;
  }
  body #profile_page__hero .container-fluid.md-mobile {
    padding: 22px var(--md-gutter) 26px;
  }
  body #profile_page__hero .container-fluid.md-mobile #profile_page__hero__logo {
    border-radius: var(--md-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  body #profile_page__hero .profile_page__hero__title {
    font-size: 34px !important;
    line-height: 1.05 !important;
    margin-top: 18px;
  }
  body #profile_page__hero #profile_page__hero_contact_details .profile_page__hero_contact_detaile_row__title,
  body #profile_page__hero #profile_page__hero_contact_details .profile_page__hero_contact_detaile_row__value {
    font-size: 18px !important;
  }
}

/* profile content */
#profile_content_container .profile_section__title,
.profile_section_container .profile_section__title {
  color: var(--md-navy);
}
#profile_content_container #profile_content__side_menu,
#profile_content_container #profile_content__side_menu a,
#profile_content_container #profile_content__side_menu li {
  font-size: 19px;
}
#profile_content_container #profile_content__side_menu a {
  color: var(--md-navy);
}
#profile_content_container #profile_content__side_menu a:hover,
#profile_content_container #profile_content__side_menu a.active {
  color: var(--md-golden-dark);
}
#profile_content_container .profile_section__content,
#profile_content_container .profile_section__content p {
  font-size: 19px;
  line-height: 1.45;
}
#profile_section_lawyer_ratings .lawyer_rating_v2__card__header,
#profile_section_ratings .rating_cards_v2__card__header {
  background: var(--md-gradient-navy);
  color: #fff;
  font-size: 19px;
}
#profile_section_lawyer_ratings .lawyer_rating_v2__card,
#profile_section_ratings .rating_cards_v2__card {
  border-radius: var(--md-radius);
  overflow: hidden;
}
#profile_section_ratings .rating_cards_v2__card *,
#profile_section_lawyer_ratings .lawyer_rating_v2__card * {
  font-size: max(1em, 17px);
}

/* lite profiles: keep the card grid inside the viewport */
.lite-cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lite-card {
  min-width: 0;
}
@media (max-width: 1199px) {
  .lite-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .lite-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 992px) {
  .lite-card__title { font-size: 19px; line-height: 1.15; }
  .lite-card__text { font-size: 16px; line-height: 1.35; }
}

@media (max-width: 992px) {
  footer #footer_contact_form .form_row .checkbox-wrapper-40 label {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
  footer #footer_content_container #footer_content {
    font-size: 15px !important;
    line-height: 1.5 !important;
    padding-left: var(--md-gutter);
    padding-right: var(--md-gutter);
  }
}
/* close (X) icon of the open mobile menu sits on the navy menu header */
@media (max-width: 992px) {
  #navbar_top .navbar-toggler:not(.collapsed) i,
  #navbar_top.is_home .navbar-toggler:not(.collapsed) i {
    color: #fff !important;
  }
}

/* -------------------------------------------------------------------------
   19. Floating contact trigger, off-canvas contact form, 404
   ------------------------------------------------------------------------- */
#fixed_contact_form_trigger {
  border: 1px solid rgba(186, 136, 44, 0.6);
  border-radius: 999px;
  background: var(--md-navy);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(6, 29, 76, 0.25);
  justify-content: center;
  gap: 8px;
}
#fixed_contact_form_trigger img {
  margin-left: 0;
}
#fixed_contact_form_trigger:hover {
  background: var(--md-blue);
}
@media (max-width: 992px) {
  #fixed_contact_form_trigger {
    left: var(--md-gutter) !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
  }
}
#offcanvas_contact_form .offcanvas-header,
#offcanvas_company_contact_form .offcanvas-header {
  background: var(--md-gradient-navy-diag);
  color: #fff;
}
#offcanvas_contact_form .offcanvas-header *,
#offcanvas_company_contact_form .offcanvas-header * {
  color: #fff;
}
#offcanvas_contact_form .offcanvas-header .btn-close,
#offcanvas_company_contact_form .offcanvas-header .btn-close {
  filter: invert(1);
  opacity: .9;
}
#offcanvas_contact_form button[type="submit"],
#offcanvas_company_contact_form button[type="submit"] {
  border: 0;
  border-radius: 10px;
  background: var(--md-gradient-gold);
  color: var(--md-navy) !important;
  font-weight: 700;
  font-size: 22px;
}

#not_found {
  padding: 90px var(--md-gutter) 110px;
  text-align: center;
}
#not_found .section-title {
  color: var(--md-navy);
  font-size: 64px;
  font-weight: 700;
  margin: 0;
}
#not_found .subtitle {
  color: var(--md-golden-dark);
  font-size: 34px;
  margin: 8px 0 0;
}
@media (max-width: 992px) {
  #not_found { padding: 60px var(--md-gutter) 70px; }
  #not_found .section-title { font-size: 44px; }
  #not_found .subtitle { font-size: 26px; }
}


/* ==========================================================================
   Round 2 – client feedback
   ========================================================================== */

/* --- home sliders: title row with the arrows, cards aligned to the title --- */
#home-page .home_rating_section__container .section_header {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 120px 0 36px;
}
#home-page .home_rating_section__container .section_header .section_title {
  margin: 0;
}
#home-page .home_rating_section__container .section_slider_nav {
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
  flex: 0 0 auto;
}
#home-page .home_rating_section__container .section_slider_nav .slick-arrow {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  color: var(--md-navy);
  font-size: 22px;
  line-height: 1;
}
#home-page .home_rating_section__container .section_slider_nav .slick-arrow::before {
  content: none !important;
}
#home-page .home_rating_section__container .section_slider_nav .slick-arrow i {
  color: var(--md-navy);
  font-size: 22px;
}
#home-page .home_rating_section__container .section_slider_nav .slick-arrow.slick-disabled {
  opacity: .35 !important;
  cursor: default;
  background: #fff !important;
}
body #home-page #home_rating__companies #companies_ratings_slider,
body #home-page #home_rating__lawyers #lawyers_ratings_slider,
body #home-page #home_rating__architects #architects_ratings_slider,
body #home-page #home_rating__appraisers #appraisers_ratings_slider,
body #home-page .home_rating_section__container .slick-slider {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
body #home-page #home_rating__companies #companies_ratings_slider .slick-list,
body #home-page #home_rating__lawyers #lawyers_ratings_slider .slick-list,
body #home-page #home_rating__architects #architects_ratings_slider .slick-list,
body #home-page #home_rating__appraisers #appraisers_ratings_slider .slick-list,
body #home-page .home_rating_section__container .slick-list {
  padding: 0 !important;
  overflow: hidden;
}
@media (max-width: 992px) {
  #home-page .home_rating_section__container .section_header {
    margin: 60px 0 22px;
  }
  /* touch-swipe like an app: no arrows, the next card peeks in */
  #home-page .home_rating_section__container .section_slider_nav {
    display: none;
  }
  body #home-page #home_rating__companies #companies_ratings_slider .slick-list,
  body #home-page #home_rating__lawyers #lawyers_ratings_slider .slick-list,
  body #home-page #home_rating__architects #architects_ratings_slider .slick-list,
  body #home-page #home_rating__appraisers #appraisers_ratings_slider .slick-list,
  body #home-page .home_rating_section__container .slick-list {
    overflow: visible;
  }
  #home-page .home_rating_section__container .section_content {
    overflow: hidden;
    margin: 0 calc(-1 * var(--md-gutter));
    padding: 0 var(--md-gutter) 10px;
  }
  #home-page .home_rating_section__container {
    padding-left: var(--md-gutter);
    padding-right: var(--md-gutter);
  }
}

/* --- card logos: never overlap the navy body, fill the area optimally --- */
.md-firm-card .md-firm-card__logo {
  height: 118px !important;
  padding: 14px 36px !important;
  overflow: hidden;
  border-bottom: 1px solid rgba(186, 136, 44, 0.25);
}
.md-firm-card .md-firm-card__logo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}
.md-firm-card .md-firm-card__logo--photo {
  height: 170px !important;
  padding: 0 !important;
}
.md-firm-card .md-firm-card__logo--photo img {
  object-fit: cover !important;
}
@media (max-width: 992px) {
  .md-firm-card .md-firm-card__logo {
    height: 96px !important;
    padding: 12px 24px !important;
  }
  .md-firm-card .md-firm-card__logo--photo {
    height: 150px !important;
    padding: 0 !important;
  }
}

/* --- header partner logos in the primary navy --- */
#navbar_top #main_nav .full_nav__left .full_nav__left_top img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(90%) saturate(4936%) hue-rotate(202deg) brightness(33%) contrast(120%);
}

/* --- footer: links + legal on light gold, logos in white on the navy section --- */
footer {
  background: var(--md-golden) !important;
}
footer #footer_contact_form__form #footer_logos {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px 40px;
  padding: 44px 0 0;
}
footer #footer_contact_form__form #footer_logos a {
  margin: 0;
  display: inline-flex;
}
footer #footer_contact_form__form #footer_logos a img {
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
footer #footer_links_columns,
footer #footer_content_container {
  background: var(--md-golden);
  color: var(--md-navy);
}
footer #footer_links_columns {
  border-bottom: 1px solid rgba(6, 29, 76, 0.15);
}
footer #footer_links_columns .footer_links_column__title {
  color: var(--md-navy) !important;
  border-bottom-color: rgba(6, 29, 76, 0.2) !important;
}
footer #footer_links_columns .footer_links_column__title::after {
  color: var(--md-navy) !important;
}
footer #footer_links_columns .footer_links_column ul li a {
  color: var(--md-navy) !important;
}
footer #footer_links_columns .footer_links_column ul li a:hover {
  color: var(--md-golden-dark) !important;
  text-decoration: underline;
}
footer #footer_links_columns .footer_links_column {
  border-bottom-color: rgba(6, 29, 76, 0.15) !important;
}
footer #footer_content_container #footer_content {
  color: var(--md-navy) !important;
  opacity: .8 !important;
  padding-top: 36px;
}
footer #footer_content_container #footer_bottom_row,
footer #footer_content_container #footer_bottom_row a,
footer #footer_content_container #footer_bottom_row span,
footer .footer_webify_credit a {
  color: var(--md-navy) !important;
}
footer #footer_content_container #footer_bottom_row a:hover,
footer .footer_webify_credit a:hover {
  color: var(--md-golden-dark) !important;
}
@media (max-width: 992px) {
  footer #footer_contact_form__form #footer_logos {
    justify-content: center;
    gap: 16px 28px;
    padding-top: 34px;
  }
  footer #footer_contact_form__form #footer_logos a img {
    height: 32px;
    max-width: 130px;
  }
}

/* --- profile: management names (primary) and roles (secondary) --- */
#profile_section__company_management .profile_section__content__item__text_container__title {
  color: var(--md-navy) !important;
  font-weight: 700;
  font-size: 22px;
}
#profile_section__company_management .profile_section__content__item__text_container__text {
  color: var(--md-blue) !important;
  font-size: 18px;
}
#profile_section__company_management .profile_section__content__item__img_container.is-placeholder img {
  object-fit: cover;
  background: #EEF0F6;
}

/* --- profile hero (desktop): the logo always sits on a light panel --- */
@media (min-width: 993px) {
  body #profile_page__hero .container-fluid.md-desktop {
    position: relative;
  }
  body #profile_page__hero .container-fluid.md-desktop #profile_page__hero__logo {
    position: relative;
    align-self: stretch;
    z-index: 0;
  }
  body #profile_page__hero .container-fluid.md-desktop #profile_page__hero__logo::before {
    content: "";
    position: absolute;
    top: -400px;
    bottom: -400px;
    left: -100vw;
    right: 6%;
    background: #F4F5F9;
    transform: skewX(-20deg);
    z-index: -1;
  }
  body #profile_page__hero .container-fluid.md-desktop #profile_page__hero__logo > * {
    position: relative;
    z-index: 1;
  }
}

/* --- lawyer rating cards: missing value ("-") in light gray, 0 stays regular --- */
#profile_section_lawyer_ratings .lawyer_rating_v2__metric--empty {
  opacity: 1 !important;
}
#profile_section_lawyer_ratings .lawyer_rating_v2__metric--empty .lawyer_rating_v2__metric__value,
#profile_section_lawyer_ratings .lawyer_rating_v2__metric--empty .lawyer_rating_v2__metric__label {
  color: #B8BDCB !important;
}
#profile_section_lawyer_ratings .lawyer_rating_v2__metric:not(.lawyer_rating_v2__metric--empty) .lawyer_rating_v2__metric__value {
  color: var(--md-navy);
}

/* --- mobile search: full-screen navy panel --- */
#offcanvas_mobile_serach.md-search-screen {
  width: 100% !important;
  max-width: 100%;
  border: 0;
  background: var(--md-gradient-navy-diag);
  color: #fff;
}
#offcanvas_mobile_serach.md-search-screen .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--md-gutter) !important;
  background: transparent;
  border-bottom: 1px solid rgba(247, 223, 182, 0.2);
}
#offcanvas_mobile_serach .md-search-screen__title {
  margin: 0;
  color: var(--md-golden);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}
#offcanvas_mobile_serach .md-search-screen__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#offcanvas_mobile_serach.md-search-screen .offcanvas-body {
  padding: 28px var(--md-gutter);
  overflow: visible;
}
#offcanvas_mobile_serach .md-search-screen__hint {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  line-height: 1.3;
}
#offcanvas_mobile_serach.md-search-screen .mobile_search_container {
  height: auto;
  width: 100%;
  border: 0;
}
#offcanvas_mobile_serach.md-search-screen .mobile_search_container input {
  height: 58px;
  padding-right: 52px !important;
  border: 1px solid var(--md-golden) !important;
  font-size: 20px !important;
}
#offcanvas_mobile_serach.md-search-screen .mobile_search_container i {
  color: var(--md-golden-dark) !important;
}
#offcanvas_mobile_serach #mobile_serach_search_autocomplete-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  height: auto;
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  padding: 8px 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
#offcanvas_mobile_serach #mobile_serach_search_autocomplete-list .autocoplate_row {
  margin: 0;
  padding: 14px 18px;
  color: var(--md-navy);
  font-size: 19px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(6, 29, 76, 0.06);
}
#offcanvas_mobile_serach #mobile_serach_search_autocomplete-list .autocoplate_row img {
  width: 48px;
  height: 32px;
  object-fit: contain;
  margin-left: 14px;
}

/* autocomplete lists of the header / hero search – brand palette */
#top_nav_search_autocomplete-list .autocoplate_row,
#home_hero_search_autocomplete-list .autocoplate_row {
  color: var(--md-navy);
  font-size: 19px;
}
#top_nav_search_autocomplete-list .autocoplate_row:hover,
#home_hero_search_autocomplete-list .autocoplate_row:hover,
#mobile_serach_search_autocomplete-list .autocoplate_row:hover,
.ak_autocomplete-active {
  background: rgba(247, 223, 182, 0.35) !important;
}

/* articles listing: "מאמר דעה" label */
#articles_page .article .article__title {
  color: var(--md-navy);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}
#articles_page .article .article__title:hover {
  color: var(--md-golden-dark);
}


/* round 3: keep the first card's border inside the slider (slick RTL is off by ~2px) */
body #home-page .home_rating_section__container .slick-list {
  padding-right: 3px !important;
}
body #home-page #home_rating__companies #companies_ratings_slider .slick-list,
body #home-page #home_rating__lawyers #lawyers_ratings_slider .slick-list,
body #home-page #home_rating__architects #architects_ratings_slider .slick-list,
body #home-page #home_rating__appraisers #appraisers_ratings_slider .slick-list {
  padding-right: 3px !important;
}

/* round 3: logos – fixed pixel bounds so no plugin/global img rule can enlarge or crop them */
body #home-page .md-firm-card .md-firm-card__logo:not(.md-firm-card__logo--photo) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 118px !important;
  padding: 12px 32px !important;
  overflow: hidden;
}
body #home-page .md-firm-card .md-firm-card__logo:not(.md-firm-card__logo--photo) img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 94px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  flex: 0 1 auto;
}
@media (max-width: 992px) {
  body #home-page .md-firm-card .md-firm-card__logo:not(.md-firm-card__logo--photo) {
    height: 100px !important;
    padding: 10px 22px !important;
  }
  body #home-page .md-firm-card .md-firm-card__logo:not(.md-firm-card__logo--photo) img {
    max-height: 80px !important;
  }
}


/* round 4: footer partner logos back in the light footer area, in primary navy */
footer #footer_content_container #footer_logos {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 48px;
  padding: 44px var(--md-gutter) 8px;
}
footer #footer_content_container #footer_logos a {
  margin: 0;
  display: inline-flex;
}
footer #footer_content_container #footer_logos a img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(70%) sepia(90%) saturate(4936%) hue-rotate(202deg) brightness(33%) contrast(120%);
}
@media (max-width: 992px) {
  footer #footer_content_container #footer_logos {
    gap: 16px 30px;
    padding-top: 30px;
  }
  footer #footer_content_container #footer_logos a img {
    height: 32px;
    max-width: 140px;
  }
}

/* round 4: mobile rating list – logos (or names) in one aligned column */
@media (max-width: 992px) {
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  body .rating_page #rating_page__results__mobile .accordion-header .accordion_rating_num {
    flex: 0 0 34px;
    margin: 0 !important;
    text-align: center;
  }
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button .lawyer_symbol {
    flex: 0 0 auto;
    margin: 0 !important;
  }
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button img.accordion_company_logo {
    flex: 0 0 132px;
    width: 132px !important;
    height: 52px !important;
    max-width: 132px !important;
    max-height: 52px !important;
    margin: 0 !important;
    object-fit: contain;
    object-position: center;
  }
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button .accordion_company_name {
    flex: 0 0 132px;
    width: 132px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--md-navy);
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    text-align: center;
  }
}
@media (max-width: 360px) {
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button img.accordion_company_logo,
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button .accordion_company_name {
    flex-basis: 112px;
    width: 112px !important;
    max-width: 112px !important;
  }
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button .accordion_company_name {
    font-size: 23px;
  }
}

/* ==========================================================================
   Round 5 – client feedback
   ========================================================================== */

/* 1. hero partner logos in white */
#home-page #home_hero__container #home_hero__content #home_hero__logos img {
  filter: brightness(0) invert(1);
}

/* 2. home menu (over the hero) truly centred on the page: the logo is taken out of the flow */
@media (min-width: 993px) {
  #navbar_top.is_home:not(.fixed-top) #navbar_top__home-top {
    position: relative;
    justify-content: center;
    padding: 0 170px;
  }
  #navbar_top.is_home:not(.fixed-top) #navbar_top__home-top .navbar-brand {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  #navbar_top.is_home:not(.fixed-top) #navbar_top__home-top .navbar-nav {
    flex: 0 1 auto;
  }
}
@media (min-width: 993px) and (max-width: 1399px) {
  #navbar_top.is_home:not(.fixed-top) #navbar_top__home-top {
    padding: 0 130px;
  }
}

/* 3. inner / scrolled bar: partner logos aligned with the last (left-most) menu item */
#navbar_top #main_nav .full_nav__left .full_nav__left_top .navbar-secondery-brand-merkaz,
#navbar_top #main_nav .full_nav__left .full_nav__left_top .nav_search_container + .navbar-secondery-brand {
  margin-right: auto !important;
}
#navbar_top #main_nav .full_nav__left .full_nav__left_top > a:last-child {
  margin-left: 0 !important;
}

/* 4. lawyers / architects / appraisers cards share one height */
body #home-page #home_rating__lawyers #lawyers_ratings_slider .md-firm-card,
body #home-page #home_rating__architects #architects_ratings_slider .md-firm-card,
body #home-page #home_rating__appraisers #appraisers_ratings_slider .md-firm-card {
  height: 350px !important;
  min-height: 0 !important;
}
#home_rating__lawyers .md-firm-card .md-firm-card__body,
#home_rating__architects .md-firm-card .md-firm-card__body,
#home_rating__appraisers .md-firm-card .md-firm-card__body {
  min-height: 0;
  overflow: hidden;
}
#home_rating__lawyers .md-firm-card .md-firm-card__title,
#home_rating__architects .md-firm-card .md-firm-card__title,
#home_rating__appraisers .md-firm-card .md-firm-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
}
#home_rating__lawyers .md-firm-card .md-firm-card__tags {
  flex-wrap: nowrap;
  overflow: hidden;
  max-width: 100%;
}
#home_rating__lawyers .md-firm-card .md-firm-card__tags li {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#home_rating__lawyers .md-firm-card .md-firm-card__btn,
#home_rating__architects .md-firm-card .md-firm-card__btn,
#home_rating__appraisers .md-firm-card .md-firm-card__btn {
  flex: 0 0 auto;
}
@media (max-width: 992px) {
  body #home-page #home_rating__lawyers #lawyers_ratings_slider .md-firm-card,
  body #home-page #home_rating__architects #architects_ratings_slider .md-firm-card,
  body #home-page #home_rating__appraisers #appraisers_ratings_slider .md-firm-card {
    height: 320px !important;
  }
}

/* 6. footer legal-area logos: right and left in navy, the middle one in its own colours */
footer #footer_content_container #footer_logos a img {
  filter: none;
}
footer #footer_content_container #footer_logos a:first-child img,
footer #footer_content_container #footer_logos a:last-child img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(90%) saturate(4936%) hue-rotate(202deg) brightness(33%) contrast(120%);
}


/* round 6: the footer curve runs across the full width of the contact section */
footer .footer_contact_form__decor {
  width: 100% !important;
  max-width: none !important;
}
footer .footer_contact_form__curve {
  width: 100%;
  height: clamp(160px, 22vw, 360px);
}
footer .footer_contact_form__badge {
  left: 3%;
  bottom: 10%;
  width: clamp(90px, 12vw, 210px);
  max-width: none;
}
footer #footer_contact_form__container {
  padding-bottom: clamp(180px, 22vw, 360px);
}
@media (max-width: 992px) {
  footer .footer_contact_form__curve {
    height: min(42vw, 260px);
  }
  footer #footer_contact_form__container {
    padding-bottom: min(46vw, 280px);
  }
  footer .footer_contact_form__badge {
    width: clamp(70px, 20vw, 120px);
    bottom: 8%;
  }
}

/* round 7: rank column – header and numbers share one centred axis */
.rating_page .rating_page__content_container #rating_page__results thead th:nth-child(2),
.rating_page .rating_page__content_container #rating_page__results tbody td.rating_page__result__rating_symbol {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.rating_page .rating_page__content_container #rating_page__results tbody td.rating_page__result__rating_symbol p {
  text-align: center;
  margin: 0 auto;
}
.rating_page .rating_page__content_container #rating_page__results tbody td.rating_page__result__rating_symbol img {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

/* round 8: field filter (architects) – its own row, segmented toggle; years below with a label */
#rating_page_hero #rating_page_hero__actions:has(#rating_page_hero__type_filter) {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
#rating_page_hero .rating_page_hero__filter_group {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
#rating_page_hero .rating_page_hero__filter_label {
  flex: 0 0 auto;
  min-width: 92px;
  color: rgba(247, 223, 182, 0.75);
  font-size: 19px;
  line-height: 1;
}
#rating_page_hero .rating_page_hero__type_filter__list {
  display: inline-flex;
  flex-flow: row nowrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(247, 223, 182, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
#rating_page_hero .rating_page_hero__type_filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 26px;
  border-radius: 999px;
  color: var(--md-golden);
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
#rating_page_hero .rating_page_hero__type_filter__item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
#rating_page_hero .rating_page_hero__type_filter__item.is-active {
  background: #fff;
  color: var(--md-navy);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
#rating_page_hero .rating_page_hero__type_filter__item.is-active::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900;
  font-size: 13px;
  margin-left: 8px;
  color: var(--md-golden-dark);
}
@media (max-width: 992px) {
  #rating_page_hero .rating_page_hero__filter_group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  #rating_page_hero #rating_page_hero__type_filter {
    padding: 0 var(--md-gutter);
    margin-bottom: 14px;
  }
  #rating_page_hero .rating_page_hero__filter_label {
    min-width: 0;
    font-size: 17px;
  }
  #rating_page_hero #rating_page_hero__year_filter .rating_page_hero__filter_label {
    padding: 0 var(--md-gutter);
  }
  #rating_page_hero .rating_page_hero__type_filter__list {
    display: flex;
    width: 100%;
  }
  #rating_page_hero .rating_page_hero__type_filter__item {
    flex: 1 1 0;
    padding: 6px 12px;
    font-size: 19px;
  }
}

/* round 9: mobile rating lists – the details arrow is always pinned to the left edge,
   the "אודות החברה" button (when present) sits right next to it */
@media (max-width: 992px) {
  body .rating_page #rating_page__results__mobile .accordion-header {
    position: relative;
    padding-left: 64px !important;
  }
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button {
    position: static;
    flex: 1 1 auto;
  }
  body .rating_page #rating_page__results__mobile .accordion-header .accordion-button::after {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    margin: auto 0 !important;
  }
  body .rating_page #rating_page__results__mobile .accordion-header > a.md-main-btn {
    margin: 0 !important;
  }
}

/* construction inspectors – profile ratings per field of expertise */
.profile_section_ratings--inspector .inspector_rating__area + .inspector_rating__area {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(6, 29, 76, 0.1);
}
.profile_section_ratings--inspector .inspector_rating__area_header {
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 18px;
}
.profile_section_ratings--inspector .inspector_rating__area_header .rating_cards_v2__year_title {
  margin: 0;
  color: var(--md-navy);
  font-weight: 700;
  font-size: 28px;
}
.profile_section_ratings--inspector .inspector_rating__rank {
  display: inline-block;
  margin-right: 12px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--md-gradient-gold);
  color: var(--md-navy);
  font-size: 18px;
  vertical-align: middle;
}
.profile_section_ratings--inspector .inspector_rating__table_link {
  color: var(--md-navy);
  font-size: 18px;
}
@media (max-width: 992px) {
  .profile_section_ratings--inspector .inspector_rating__area_header .rating_cards_v2__year_title {
    font-size: 24px;
  }
  .profile_section_ratings--inspector .inspector_rating__rank {
    display: table;
    margin: 8px 0 0;
    font-size: 16px;
  }
}

/* inspectors: field chips and year chips in two labelled rows */
#rating_page_hero #rating_page_hero__actions:has(.rating_page_hero__filter_group--areas) {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
@media (max-width: 992px) {
  #rating_page_hero #rating_page_hero__areas_of_expertise.rating_page_hero__filter_group--areas {
    padding: 0;
    margin-bottom: 14px;
  }
  #rating_page_hero .rating_page_hero__filter_group--areas .rating_page_hero__filter_label {
    padding: 0 var(--md-gutter);
  }
}
.profile_section_ratings--inspector .rating_cards_v2__year_title .inspector_rating__rank {
  color: var(--md-navy) !important;
  font-weight: 700;
}
