/* ============================================================
   ZLS brand system: navy / gold / cream, per client-supplied
   design (zls_homepage_design.html)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --zls-navy: #061b33;
  --zls-navy-2: #0b2949;
  --zls-gold: #c99624;
  --zls-gold-2: #e0ae3b;
  --zls-cream: #f7f6f1;

  /* A faint geometric lattice + 8-point star medallion, in the spirit of
     Zanzibar's carved Stone Town doors and mashrabiya lattice screens -
     used as a very low-opacity texture, never a loud print. */
  --zls-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M0 0L56 56M56 0L0 56' stroke='%23e0ae3b' stroke-opacity='0.10' stroke-width='1'/%3E%3Cpath d='M16 16H40V40H16Z M28 11L45 28L28 45L11 28Z' fill='none' stroke='%23e0ae3b' stroke-opacity='0.18' stroke-width='1'/%3E%3C/svg%3E");
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--zls-cream);
}

/* Client hates whitespace: the theme's .bb-inner (every content-builder
   row wrapper) defaults to 100px top/bottom padding, with presets going
   up to 180px - kill it at the source instead of tuning it per row. */
.bb-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
h1, h2, h3, h4, h5, h6,
.title,
.site-branding__name {
  font-family: "Playfair Display", Georgia, serif;
}

/* Top contact bar - flat .container > .contact-items + .top-links row,
   ported directly from the client's design (zls_homepage_design.html) */
.topbar {
  background: var(--zls-navy);
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  position: relative;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar .contact-items-center {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .topbar .contact-items-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
.topbar .contact-items {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 24px;
  align-items: center;
}
.topbar .contact-item {
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: .96;
}
.topbar .contact-item i {
  color: var(--zls-gold-2);
  font-size: 12px;
}
.topbar .top-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.topbar a {
  color: #fff;
}
.topbar a:hover {
  color: var(--zls-gold-2);
}

/* Language toggle + "My ZLS Portal" pills in the top bar's right side -
   ported look/feel from the client's zls_official_website_complete.html
   mockup (dark chip w/ gold outline for the language toggle, solid gold
   gradient button for the portal CTA), recolored onto this site's own
   navy/gold variables. Both are placeholders (href="#") - no language
   switching or portal login is implemented yet. */
.topbar .lang-toggle,
.topbar .btn-zls-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s ease;
}
.topbar .topbar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.topbar .lang-toggle {
  background: rgba(255, 255, 255, .08);
  color: var(--zls-gold-2);
  border: 1px solid rgba(224, 174, 59, .35);
}
.topbar .lang-toggle:hover {
  background: rgba(255, 255, 255, .16);
  color: var(--zls-gold-2);
}
.topbar .btn-zls-portal {
  background: linear-gradient(to right, var(--zls-gold), var(--zls-gold-2));
  color: var(--zls-navy);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.topbar .btn-zls-portal:hover {
  background: linear-gradient(to right, var(--zls-gold-2), #ecc25a);
  color: var(--zls-navy);
}
/* Drupal wraps each block's body in its own block/content/field divs -
   collapse those out of layout so contact-items/top-links stay a flat
   flex row reaching the real .contact-item / <a> children, matching the
   design's plain markup instead of stacking under the Drupal wrappers. */
.topbar .contact-items div:not(.contact-item),
.topbar .contact-items-center div:not(.contact-item),
.topbar .top-links div {
  display: contents;
}

/* Nav underline uses gold on hover/active (theme accent already recolored) */
.navigation .gva_menu > li > a.active,
.navigation .gva_menu > li.active > a {
  color: var(--zls-gold) !important;
}

/* "Find an Advocate" CTA button - last item in the main nav, styled as a
   navy/gold button (not a plain nav link) to match the client mockup. It's
   a placeholder (no href) until the advocate directory feature is built,
   so it's targeted by position (:last-child) rather than a link class -
   this theme's menu template doesn't propagate menu-link "options.attributes"
   through to the rendered <a>.

   The other 7 nav items + logo + search icon already fill this header row
   almost edge to edge (this theme lays the menu out as inline-block <li>s,
   not flex - .navigation .gva_menu's own resolved width can end up
   narrower than the sum of its children even when the header still has
   visible slack), and the exact margin varies slightly by page/active-item
   state, so this button wrapped onto its own line on some pages (e.g.
   /about-us) but not others. Fix: take it out of that inline-block flow
   entirely with absolute positioning pinned to .navigation's right edge -
   it can then never be the thing that overflows/wraps, regardless of how
   tight the other 7 items run.

   Anchored to `.content-inner`/`.header-main-inner` (both already
   `position: relative` via the theme's own "p-relative" class, and
   reliably full-row-height) rather than `.navigation` itself -
   `.navigation` is a <nav> wrapping only a floated <ul>, so with no
   clearfix it collapses to 0 height, which broke `top: 50%` centering
   (it was computing 50% of nothing). */
@media (min-width: 992px) {
  .navigation .gva_menu > li:last-child {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
}
.navigation .gva_menu > li:last-child > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px !important;
  background: var(--zls-navy);
  color: #fff !important;
  font-weight: 700;
  font-size: 11px !important;
  border-radius: 4px;
  border: 2px solid var(--zls-gold-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  transition: all .2s;
  white-space: nowrap;
}
.navigation .gva_menu > li:last-child > a::before {
  content: '';
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  display: inline-block;
  background-color: var(--zls-gold-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.navigation .gva_menu > li:last-child > a:hover {
  background: var(--zls-navy-2);
  border-color: var(--zls-gold);
  color: #fff !important;
}

/* ---- Navbar: logo LEFT, nav (+ search) RIGHT, one tight row ---- */
header.header-2 .header-main,
header.header-default .header-main,
header.header-1 .header-main {
  padding: 0 !important;
  background: #fff;
}
header .site-branding-logo img {
  width: auto;
}
/* Desktop only - mobile keeps the theme's own stacked/off-canvas nav */
@media (min-width: 992px) {
  header.header-2 .header-main-inner .content-inner,
  header.header-default .header-main-inner .content-inner,
  header.header-1 .header-main-inner .content-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    float: none !important;
    width: 100% !important;
  }
  header.header-2 .header-main-inner .branding,
  header.header-default .header-main-inner .branding,
  header.header-1 .header-main-inner .branding {
    flex: 0 0 auto;
    float: none !important;
    width: auto !important;
  }
  header.header-2 .header-main-inner .header-inner,
  header.header-default .header-main-inner .header-inner,
  header.header-1 .header-main-inner .header-inner {
    float: none !important;
    width: auto !important;
  }
}
header.header-2 .header-main-inner .navigation .gva_menu > li > a,
header.header-default .header-main-inner .navigation .gva_menu > li > a,
header.header-1 .header-main-inner .navigation .gva_menu > li > a {
  padding-top: 36px;
  padding-bottom: 36px;
  color: var(--zls-navy);
  font-weight: 700;
}
header.header-2 .header-main-inner .navigation .gva_menu > li > a:hover,
header.header-2 .header-main-inner .navigation .gva_menu > li:hover > a,
header.header-2 .header-main-inner .navigation .gva_menu > li.menu-item--active-trail > a,
header.header-default .header-main-inner .navigation .gva_menu > li > a:hover,
header.header-default .header-main-inner .navigation .gva_menu > li:hover > a,
header.header-default .header-main-inner .navigation .gva_menu > li.menu-item--active-trail > a,
header.header-1 .header-main-inner .navigation .gva_menu > li > a:hover,
header.header-1 .header-main-inner .navigation .gva_menu > li:hover > a,
header.header-1 .header-main-inner .navigation .gva_menu > li.menu-item--active-trail > a {
  color: var(--zls-gold) !important;
}
/* Search icon at the end of the nav row (desktop only - mobile keeps the
   theme's own absolute-positioned icon over the collapsed header) */
@media (min-width: 992px) {
  .gva-search-region {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    margin-left: 22px;
    margin-top: 0 !important;
    display: inline-flex;
    align-items: center;
  }
  .gva-search-region .search-content {
    top: 60px !important;
  }
}
.gva-search-region .icon {
  color: var(--zls-navy) !important;
  font-size: 16px !important;
}
/* header-2's old two-row layout gave .main-menu a gold bar background;
   it's now just the nav wrapper nested in the single flex row - keep it
   transparent so it doesn't paint behind the nav text. */
header.header-2 .header-main-inner .main-menu {
  background: transparent !important;
}

/* Hero row with a navy diagonal-gradient overlay over the background photo */
.hero-overlay-dark.gva-parallax-background,
.hero-overlay-dark {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.hero-overlay-dark.gva-parallax-background::before,
.hero-overlay-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(5, 27, 50, 0.60);
  /*background: linear-gradient(90deg, rgba(4,25,48,.96) 0%, rgba(5,27,50,.92) 34%, rgba(5,27,50,.5) 62%, rgba(5,27,50,.2) 100%);*/
}
.hero-overlay-dark > .bb-inner,
.hero-overlay-dark > .gva-parallax-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
/* .bb-container (Bootstrap ".container", ~1200px/centered) and .gsc-column
   are position:relative by the THEME's own default CSS, not by anything
   above - so they're each a valid containing block on their own, and the
   slideshow's position:absolute was resolving against .gsc-column (boxed
   to that centered 1200px column) rather than the full-width row. Forcing
   them static here (hero row only) makes it skip both and resolve against
   .bb-inner instead - full row width and height. The hero copy text still
   renders fine inside its own (shorter, auto-height, still-centered)
   column - margin:auto centering doesn't depend on position. */
.hero-overlay-dark .bb-container,
.hero-overlay-dark .gsc-column {
  position: static;
}
/* The hero copy text is a plain (position:static) element sitting next to
   the now-absolutely-positioned slideshow inside that same column - browsers
   paint positioned boxes above static ones regardless of DOM order or
   z-index, so without this the slideshow would cover the text entirely. */
.hero-overlay-dark .column-content {
  position: relative;
  z-index: 2;
}
@media (max-width: 767.98px) {
  .hero-overlay-dark.gva-parallax-background,
  .hero-overlay-dark {
    /* Not 0: every child is now position:absolute (see the .bb-container /
       .gsc-column rules above), so nothing is left in normal flow to give
       this row a height - min-height is the only thing sizing it. */
    min-height: 480px;
  }
}

/* Hero slideshow: only the background photo layer cycles, the hero copy
   (.bb-inner, above, z-index 2) stays put. Each .hero-slide-item is an
   absolutely-positioned, full-bleed image; js/zls-custom.js toggles
   .is-active every few seconds to crossfade between them. */
.zls-hero-slideshow-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.zls-hero-slideshow-wrap .views-element-container,
.zls-hero-slideshow-wrap .zls-hero-slideshow,
.zls-hero-slideshow-wrap .view-content-wrap {
  position: absolute;
  inset: 0;
}
.zls-hero-slideshow .hero-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.zls-hero-slideshow .hero-slide-item.is-active {
  opacity: 1;
}
.zls-hero-slideshow .hero-slide-item .field-content,
.zls-hero-slideshow .hero-slide-item .item-image,
.zls-hero-slideshow .hero-slide-item .hero-slide-visual {
  position: absolute;
  inset: 0;
}
.zls-hero-slideshow .hero-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Per-slide title/description: rendered by the view (so editors can manage
   them on the hero_slide node) but not shown in place - zls-custom.js reads
   their text and copies it into #heroActiveTitle/#heroActiveDesc (the fixed
   heading below) whenever the active slide changes. */
.zls-hero-slideshow .hero-slide-title,
.zls-hero-slideshow .hero-slide-desc {
  display: none;
}
/* Hero content - literal markup/classes ported from the design
   (.eyebrow / h1 / .gold-line / p / .buttons / .btn) */
.hero-overlay-dark .eyebrow {
  color: var(--zls-gold-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .7px;
  margin-bottom: 20px;
}
.hero-overlay-dark h1,
.hero-overlay-dark h2 {
  font: 600 clamp(34px, 4vw, 50px)/1.15 "Playfair Display", Georgia, serif;
  color: #fff;
  margin: 0 0 25px;
  max-width: 640px;
  transition: opacity .3s ease;
}
.hero-overlay-dark .gold-line {
  width: 80px;
  height: 2px;
  background: var(--zls-gold-2);
  margin: 0 0 24px;
}
.hero-overlay-dark p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 600px;
  color: #eef2f7;
  margin: 0 0 31px;
  transition: opacity .3s ease;
}
.hero-overlay-dark .buttons {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}
.hero-overlay-dark .btn {
  padding: 15px 27px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  transition: .2s;
  text-transform: none;
  line-height: 1.2;
}
.hero-overlay-dark .btn-primary {
  background: var(--zls-gold);
  color: #fff;
  border: 1px solid var(--zls-gold);
}
.hero-overlay-dark .btn-primary:hover {
  background: var(--zls-gold-2);
  border-color: var(--zls-gold-2);
  transform: translateY(-2px);
  color: #fff;
}
.hero-overlay-dark .btn-outline {
  background: transparent;
  border: 1px solid var(--zls-gold);
  color: #fff;
}
.hero-overlay-dark .btn-outline:hover {
  background: rgba(201, 150, 36, .12);
  color: #fff;
}

/* Slide indicator dots - built by zls-custom.js (one per .hero-slide-item),
   appended directly into .hero-overlay-dark so they sit above both the
   photo layer (z-index 0) and the dark overlay (z-index 1). */
.hero-slide-dots {
  position: absolute;
  right: 24px;
  bottom: 20px;
  /* Higher than .zls-stats-row's z-index: 3 (below) - that card overlaps
     the hero's bottom edge via a negative margin-top, and at an equal
     z-index it was winning the stacking tie-break (it comes later in the
     DOM), sitting on top of and swallowing clicks on these dots even
     though the dots were still visibly painted underneath it. */
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.hero-slide-dots button {
  width: 10px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: all .25s ease;
}
.hero-slide-dots button:hover {
  background: rgba(255, 255, 255, .7);
}
.hero-slide-dots button.is-active {
  width: 28px;
  background: var(--zls-gold);
}
@media (max-width: 767.98px) {
  .hero-slide-dots {
    right: 16px;
    bottom: 14px;
  }
}

/* Stats card - literal markup/classes ported from the design
   (.stats-card / .stat / .stat-icon), overlapping the hero bottom edge */
.zls-stats-row {
  margin-top: -36px;
  position: relative;
  z-index: 3;
}
.stats-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(6, 27, 51, .12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 25px 20px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 4px 30px;
  border-right: 1px solid #e8e8e5;
}
.stat:last-child {
  border-right: 0;
}
.stat-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: var(--zls-navy);
  color: var(--zls-gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat strong {
  display: block;
  font: 600 27px/1 "Playfair Display", Georgia, serif;
  color: var(--zls-navy);
}
.stat span {
  display: block;
  font-size: 14px;
  color: #525c6d;
  margin-top: 7px;
}
@media (max-width: 767.98px) {
  .stats-card {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid #e8e8e5;
    padding: 14px 12px;
  }
}

/* Remaining theme-native buttons elsewhere on the page (Strategic Plan CTA,
   etc.) use the theme's own .btn-theme/.btn-theme-second - base gold state
   is already correct (global accent recolor), just fix the hover/second
   states which still carry the old skin's blue/navy hardcoded hex. */
.btn-theme:hover, .btn-theme:focus, .btn-theme:active {
  background: var(--zls-gold-2) !important;
  color: #fff !important;
}
.btn-theme-second {
  background: transparent;
  border: 1px solid var(--zls-gold);
  color: var(--zls-navy);
}
.btn-theme-second:hover, .btn-theme-second:focus, .btn-theme-second:active {
  background: rgba(201, 150, 36, .12) !important;
  color: var(--zls-navy) !important;
}

/* Three-panel cards (For Advocates / Our Mission / News) - literal
   markup/classes ported from the design (.panel/.list/.list-icon/.explore,
   .quote/.signature, .news-card/.news-image/...) */
.panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
  min-height: 320px;
  height: 100%;
  box-sizing: border-box;
}
.mission-block {
  margin-bottom: 20px;
}
.mission-block:last-child {
  margin-bottom: 0;
}
.mission-block h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--zls-gold);
  margin: 0 0 8px;
  font-family: "DM Sans", Arial, sans-serif;
}
.mission-block p {
  font-size: 15px;
  line-height: 1.6;
  color: #172238;
  margin: 0;
}
.panel h2 {
  font: 600 25px "Playfair Display", Georgia, serif;
  margin: 0 0 9px;
  color: var(--zls-navy);
}
.panel .gold-line {
  width: 42px;
  height: 2px;
  background: var(--zls-gold);
  margin: 0 0 22px;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  font-size: 15px;
  border-bottom: 1px dashed #eee;
}
.list li:last-child { border-bottom: 0; }
.list-icon {
  width: 22px;
  color: var(--zls-gold);
  font-size: 15px;
  text-align: center;
}
.explore {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 17px;
  color: var(--zls-gold);
  font-weight: 700;
}
.explore:hover { color: var(--zls-gold-2); }

.quote {
  font-size: 18px;
  line-height: 1.65;
  margin: 9px 0 27px;
  color: #172238;
  font-style: italic;
}
.signature {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: var(--zls-navy);
  margin-bottom: 3px;
}
.sign-label {
  font-weight: 700;
  color: var(--zls-navy);
}
.sign-sub {
  font-size: 13px;
  color: #667085;
  margin-top: 3px;
}

.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e5;
}
.news-card:last-of-type { border-bottom: 0; }
.news-image {
  height: 76px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
}
.news-date {
  font-size: 11px;
  color: #8991a0;
  margin-bottom: 5px;
}
.news-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}
.news-title a { color: var(--zls-navy); }
.news-desc {
  font-size: 12px;
  color: #667085;
  line-height: 1.45;
  margin-top: 5px;
}
.read {
  font-size: 12px;
  color: var(--zls-gold);
  font-weight: 700;
  margin-top: 5px;
  display: inline-block;
}
.view-all {
  display: inline-flex;
  gap: 10px;
  color: var(--zls-gold);
  font-weight: 700;
  margin-top: 13px;
}
.view-all:hover, .read:hover { color: var(--zls-gold-2); }

/* Strategic Plan row: the text column is much shorter than the gallery
   carousel column, but Bootstrap's row stretches both to match - align to
   the top instead so the row hugs its tallest column's real content. */
.zls-strategic-row .row-wrapper {
  align-items: flex-start;
}

/* CTA banner */
.zls-cta-banner .gsc-call-to-action {
  background: var(--zls-navy);
  border-radius: 9px;
  padding: 42px 48px;
  color: #fff;
}
.zls-cta-banner .gsc-call-to-action .title,
.zls-cta-banner .gsc-call-to-action .title span {
  color: #fff;
}
.zls-cta-banner .gsc-call-to-action .desc,
.zls-cta-banner .gsc-call-to-action .desc p {
  color: #ccd6e3;
}

/* "Our Partners" carousel (Views block, gvaowl style, sitewide via the
   before_footer region on every page) - navy strip, white rounded
   logo/wordmark cards, always-visible circular nav arrows (the theme
   hides owl-nav until hover by default; override that here). */
.footer-top {
  background: var(--zls-lattice) repeat, var(--zls-navy);
  padding: 40px 0;
}
#block-zls-partners-carousel .block-title {
  text-align: center;
  margin: 0 0 24px;
}
#block-zls-partners-carousel .block-title span {
  color: var(--zls-gold-2);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.partners-carousel {
  padding: 0 56px;
}
.partners-carousel .item {
  padding: 0 10px;
}
.partner-card {
  background: #fff;
  border-radius: 8px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.partner-card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  color: var(--zls-navy);
  line-height: 1.2;
}
.partner-card span {
  font-size: 10px;
  color: #667085;
  margin-top: 5px;
  line-height: 1.3;
}
.partners-carousel.owl-carousel .owl-nav {
  opacity: 1 !important;
}
.partners-carousel.owl-carousel .owl-nav > div {
  background: transparent;
  border: 1px solid var(--zls-gold-2);
  border-radius: 50%;
  color: var(--zls-gold-2) !important;
}
.partners-carousel.owl-carousel .owl-nav > div i {
  color: var(--zls-gold-2) !important;
}
.partners-carousel.owl-carousel .owl-nav > div:hover {
  background: var(--zls-gold-2);
  border-color: var(--zls-gold-2);
}
.partners-carousel.owl-carousel .owl-nav > div:hover i {
  color: var(--zls-navy) !important;
}
.partners-carousel.owl-carousel .owl-nav > div.owl-prev {
  left: 0 !important;
}
.partners-carousel.owl-carousel .owl-nav > div.owl-next {
  right: 0 !important;
}

/* Footer: navy background, 4-column layout, with a faint geometric
   lattice texture (see --zls-lattice below) nodding to the carved wooden
   screens and doors of Zanzibar's Stone Town. */
footer#footer {
  background: var(--zls-lattice) repeat, #041426;
}
footer#footer .footer-column h4,
footer#footer .footer-column .block-title,
footer#footer .footer-column h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: #fff;
  font-size: 20px;
  margin-bottom: 18px;
}
footer#footer, footer#footer p, footer#footer li, footer#footer a {
  color: #aeb9c7;
}
footer#footer a:hover { color: var(--zls-gold-2); }
footer#footer .copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  background: transparent;
}
.zls-footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: #fff;
}
.zls-footer-tag {
  font-size: 12px;
  color: var(--zls-gold-2);
  margin: 6px 0 14px;
}
.zls-contact-list, .zls-links-list-footer {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zls-contact-list li {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
}
.zls-contact-list i { color: var(--zls-gold-2); width: 16px; }
.zls-links-list-footer li { margin: 9px 0; font-size: 14px; line-height: 1.35; }
/* Quick Links footer column: internal nav links + partner/government
   links side by side in two sub-columns. */
.footer-links-columns {
  display: flex;
  gap: 20px;
}
.footer-links-columns .zls-links-list-footer {
  flex: 1 1 0;
  min-width: 0;
}

/* ZLS: keep the full main navigation (through Contact Us) on one line on desktop */
@media (min-width: 992px) {
  .header-content-layout,
  .main-menu .container {
    max-width: 1600px;
  }
  .navigation .gva_menu > li > a {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 13px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navigation .gva_menu > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
  }
}

/* Leadership page: card grid for the "team" View's Leadership Grid block
   display (Team content type - currently just Name + Position, no photo
   field yet), plus the "Get in Touch with the Secretariat" CTA row. */
.zls-leadership-grid .view-content-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}
.zls-leadership-grid .leader-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
}
.zls-leadership-grid .leader-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--zls-navy);
}
.zls-leadership-grid .leader-role {
  font-size: 14px;
  color: #66727d;
  margin-top: 7px;
}
@media (max-width: 900px) {
  .zls-leadership-grid .view-content-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .zls-leadership-grid .view-content-wrap {
    grid-template-columns: 1fr;
  }
}

/* Home page only ("Our Leadership" row, marked with the zls-leadership-pyramid
   class - see the "Brand" row in the Home builder, bid 4): arrange the same
   team members into a centered, tapering 5-3-1 pyramid instead of a plain
   grid, so the last member in display order sits alone at the point.
   Hardcoded to the current headcount (9) - if the roster grows/shrinks,
   the row sizes and :nth-child selectors below need updating to match. */
.zls-leadership-pyramid .zls-leadership-grid .view-content-wrap {
  grid-template-columns: repeat(10, 1fr);
}
.zls-leadership-pyramid .zls-leadership-grid .leader-card {
  grid-column: span 2;
}
.zls-leadership-pyramid .zls-leadership-grid .leader-card:nth-child(6) {
  grid-column: 3 / span 2;
}
.zls-leadership-pyramid .zls-leadership-grid .leader-card:nth-child(7) {
  grid-column: 5 / span 2;
}
.zls-leadership-pyramid .zls-leadership-grid .leader-card:nth-child(8) {
  grid-column: 7 / span 2;
}
.zls-leadership-pyramid .zls-leadership-grid .leader-card:nth-child(9) {
  grid-column: 5 / span 2;
}
@media (max-width: 900px) {
  .zls-leadership-pyramid .zls-leadership-grid .view-content-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .zls-leadership-pyramid .zls-leadership-grid .leader-card,
  .zls-leadership-pyramid .zls-leadership-grid .leader-card:nth-child(6),
  .zls-leadership-pyramid .zls-leadership-grid .leader-card:nth-child(7),
  .zls-leadership-pyramid .zls-leadership-grid .leader-card:nth-child(8),
  .zls-leadership-pyramid .zls-leadership-grid .leader-card:nth-child(9) {
    grid-column: auto;
  }
}
@media (max-width: 600px) {
  .zls-leadership-pyramid .zls-leadership-grid .view-content-wrap {
    grid-template-columns: 1fr;
  }
}

.zls-leadership-contact {
  padding-top: 45px;
  margin-top: 15px;
  border-top: 1px solid #d7dce0;
}
.zls-leadership-contact h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--zls-navy);
  margin: 0 0 16px;
}
.zls-leadership-contact .gold-line {
  width: 42px;
  height: 2px;
  background: var(--zls-gold);
  margin: 0 0 22px;
}
.zls-leadership-contact p {
  color: #66727d;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}
.zls-leadership-contact-right {
  border-left: 2px solid var(--zls-gold);
  padding-left: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
@media (max-width: 767.98px) {
  .zls-leadership-contact-right {
    border-left: 0;
    border-top: 2px solid var(--zls-gold);
    padding-left: 0;
    padding-top: 25px;
    margin-top: 25px;
  }
}
.zls-leadership-contact-btn.gsc-button {
  border-radius: 2px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

/* Home page "What We Do / Our Programmes" section: card grid for the
   "service" View's block_2 display (view_mode "teaser"), matching the
   ZLS_Leadership-style mockup - icon badge, title, description, a
   checklist (field_service_checklist) and a navy "Learn more" footer bar. */
.zls-programme-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(6, 27, 51, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.zls-programme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(6, 27, 51, 0.14);
}
.zls-programme-card-body {
  flex: 1;
  text-align: center;
  padding: 45px 32px 26px;
}
.zls-programme-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--zls-navy);
  border: 2px solid var(--zls-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.zls-programme-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.zls-programme-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.35;
  color: var(--zls-navy);
  margin: 0 0 16px;
}
.zls-programme-title a {
  color: inherit;
  text-decoration: none;
}
.zls-programme-title a:hover {
  color: var(--zls-gold);
}
.zls-programme-desc {
  color: #66727d;
  font-size: 15px;
  line-height: 1.75;
}
.zls-programme-divider {
  width: 40px;
  height: 2px;
  background: var(--zls-gold);
  margin: 22px auto 20px;
}
.zls-programme-checklist {
  text-align: left;
}
.zls-programme-checklist .field__item {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 14px;
  color: var(--zls-navy-2);
  line-height: 1.4;
}
.zls-programme-checklist .field__item:last-child {
  margin-bottom: 0;
}
.zls-programme-checklist .field__item::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: var(--zls-gold);
  border-radius: 50%;
}
.zls-programme-footer {
  margin-top: auto;
  background: var(--zls-navy);
  text-align: center;
  padding: 16px 20px;
}
.zls-programme-learnmore {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--zls-gold-2);
  text-decoration: none;
}
.zls-programme-learnmore .arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.2s ease;
}
.zls-programme-learnmore:hover {
  color: #fff;
}
.zls-programme-learnmore:hover .arrow {
  transform: translateX(4px);
}

/* ZLS: the breadcrumb banner text is always white (theme default), but the
   background photo isn't always dark enough for that to stay readable.
   A permanent dark scrim keeps it legible regardless of which photo is
   used, instead of relying on picking only very dark images. */
.breadcrumb-style.gva-parallax-background {
  position: relative;
}
.breadcrumb-style.gva-parallax-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--zls-lattice) repeat, rgba(13, 43, 58, 0.6);
  z-index: 0;
}
.breadcrumb-style.gva-parallax-background > .container,
.breadcrumb-style.gva-parallax-background > .gva-parallax-inner {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Home page: Legal Aid Intake + Featured Law Firms hub row
   (replaces the old Strategic Plan / Gallery carousel row),
   adapted from the client's zls_portal_extended_workflows.html
   mockup onto the site's own navy/gold brand tokens.
   ============================================================ */
.zls-hub-eyebrow {
  display: inline-block;
  color: var(--zls-gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--zls-gold);
  padding-bottom: 4px;
  margin-bottom: 10px;
}
.zls-hub-title {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--zls-navy);
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 8px;
}
.zls-hub-lead {
  color: #64748B;
  font-size: 13px;
  margin: 0 0 18px;
}

.zls-gateway-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(6, 27, 51, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.zls-gateway-card:hover { box-shadow: 0 6px 20px rgba(6, 27, 51, 0.1); }
.zls-gateway-header {
  background: var(--zls-navy);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.zls-gateway-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zls-gold-2);
}
.zls-gateway-icon svg { width: 22px; height: 22px; }
.zls-gateway-title {
  font-family: "Playfair Display", Georgia, serif;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 3px;
}
.zls-gateway-subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
}
.zls-gateway-body { padding: 22px 24px; flex: 1; }
.zls-badges-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.zls-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.zls-badge svg { width: 13px; height: 13px; }
.zls-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.zls-badge-green { background: #ECFDF5; color: #047857; border: 1px solid rgba(4, 120, 87, 0.2); }
.zls-badge-gray { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.zls-badge-gold { background: rgba(200, 147, 39, 0.15); color: #886414; border: 1px solid rgba(200, 147, 39, 0.3); text-transform: uppercase; }
.zls-badge-sky { background: #E0F2FE; color: #0369A1; border: 1px solid rgba(3, 105, 161, 0.2); text-transform: uppercase; }

.zls-checklist { list-style: none; padding: 0; margin: 0; }
.zls-checklist li { font-size: 13.5px; color: #475569; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.zls-checklist li:last-child { margin-bottom: 0; }
.zls-checklist li svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--zls-gold); margin-top: 1px; }

.zls-gateway-footer { padding: 0 24px 24px; margin-top: auto; }
.btn-portal-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--zls-navy);
  border: 1.5px solid var(--zls-gold);
  color: var(--zls-gold-2) !important;
  text-align: center;
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-portal-primary:hover { background: var(--zls-navy-2); }
.btn-portal-primary .line1 { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.btn-portal-primary .line1 svg { width: 16px; height: 16px; }
.btn-portal-primary .line2 { font-size: 11px; font-weight: 500; color: rgba(224, 174, 59, 0.8); margin-top: 3px; }

/* Featured Law Firm cards (View: law_firms, node--law-firm.html.twig teaser) */
.zls-firm-list .view-content-wrap { display: block; }
.zls-firm-card { background: #fff; border-radius: 12px; margin-bottom: 12px; overflow: hidden; border: 1px solid #E2E8F0; box-shadow: 0 1px 3px rgba(6, 27, 51, 0.05); transition: box-shadow 0.2s ease; }
.zls-firm-card:hover { box-shadow: 0 6px 20px rgba(6, 27, 51, 0.08); }
.zls-firm-card.premier { border-color: rgba(200, 147, 39, 0.4); }
.zls-firm-inner { padding: 20px 20px 4px; }
.zls-firm-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.zls-firm-title { font-family: "Playfair Display", Georgia, serif; font-size: 17px; color: var(--zls-navy); margin: 0 0 3px; line-height: 1.3; }
.zls-firm-title a { color: inherit; text-decoration: none; }
.zls-firm-title a:hover { color: var(--zls-gold); }
.zls-firm-meta { font-size: 12px; color: #64748B; }
.zls-firm-tags-label { font-size: 10.5px; font-weight: 600; color: #64748B; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; }
.zls-firm-tags { margin-bottom: 16px; }
.zls-firm-tags .field { display: flex; gap: 6px; flex-wrap: wrap; }
.zls-firm-tags .field__item { background: #F1F5F9; color: #334155; font-size: 11px; font-weight: 500; padding: 5px 10px; border-radius: 6px; }
.zls-firm-footer-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--zls-navy); color: var(--zls-gold-2) !important; text-align: center;
  padding: 13px 16px; font-size: 12.5px; font-weight: 700; text-decoration: none;
}
.zls-firm-footer-btn svg { width: 15px; height: 15px; }
.zls-firm-footer-btn:hover { background: var(--zls-navy-2); }

.zls-ad-onboard-box {
  background: var(--zls-gold-light, #FEF9EE);
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.zls-ad-onboard-text strong { color: var(--zls-navy); font-size: 11px; }
.zls-ad-onboard-text p { font-size: 10px; color: #475569; margin: 2px 0 0; }
.btn-advertise-firm {
  background: var(--zls-gold); color: #fff !important; font-size: 10px; font-weight: 700; padding: 8px 14px; border-radius: 4px; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.btn-advertise-firm:hover { background: var(--zls-gold-2); }

@media (max-width: 767.98px) {
  .zls-gateway-card, .zls-firm-card { margin-bottom: 20px; }
}

/* ============================================================
   CLE Calendar table (cle_courses view) - /continuous-legal-education-cle
   ============================================================ */
.zls-cle-table-wrap {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.zls-cle-table-wrap .views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.zls-cle-table-wrap .views-exposed-form .form-item {
  margin: 0;
}
.zls-cle-table-wrap .views-exposed-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--zls-navy);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.zls-cle-table-wrap .views-exposed-form select,
.zls-cle-table-wrap .views-exposed-form input[type="text"] {
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  min-width: 200px;
}
.zls-cle-table-wrap .views-exposed-form .form-actions {
  display: flex;
  gap: 8px;
}
.zls-cle-table-wrap .views-exposed-form .form-submit {
  background: var(--zls-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.zls-cle-table-wrap .views-exposed-form .form-submit:hover {
  background: var(--zls-navy-2);
}
.zls-cle-table-wrap .views-exposed-form .form-submit[value="Reset"] {
  background: transparent;
  color: var(--zls-navy);
  border: 1px solid #CBD5E1;
}

.zls-cle-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 900px;
}
.zls-cle-table-wrap .view-content {
  overflow-x: auto;
}
.zls-cle-table-wrap thead th {
  background: var(--zls-navy);
  color: #fff;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 12px 14px;
  white-space: nowrap;
}
.zls-cle-table-wrap thead th.cle-col-sn {
  text-align: center;
  color: var(--zls-gold-2);
  width: 48px;
}
.zls-cle-table-wrap tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: top;
  color: #1E293B;
}
.zls-cle-table-wrap tbody tr:hover td {
  background: #F8FAFC;
}
.zls-cle-table-wrap td.cle-col-sn {
  text-align: center;
  font-weight: 700;
  color: #475569;
}
.zls-cle-table-wrap td.cle-col-title {
  font-weight: 700;
  color: var(--zls-navy);
  max-width: 320px;
}
.zls-cle-table-wrap .cle-subtext {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
  font-weight: 400;
}
.zls-cle-table-wrap .cle-mode-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: #DBEAFE;
  color: #1D4ED8;
}
.zls-cle-table-wrap .cle-mode-badge.cle-mode-PHYSICAL {
  background: #D1FAE5;
  color: #047857;
}
.zls-cle-table-wrap td.cle-col-fee,
.zls-cle-table-wrap td.cle-col-points {
  text-align: right;
  font-weight: 700;
  color: var(--zls-navy);
  white-space: nowrap;
}
.zls-cle-table-wrap td.cle-col-points {
  text-align: center;
}
.zls-cle-table-wrap td.cle-col-action {
  text-align: center;
}
.zls-cle-table-wrap .cle-subscribe-btn {
  display: inline-block;
  background: var(--zls-navy);
  color: #fff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
}
.zls-cle-table-wrap .cle-subscribe-btn:hover {
  background: var(--zls-navy-2);
}
@media (max-width: 767.98px) {
  .zls-cle-table-wrap .views-exposed-form select,
  .zls-cle-table-wrap .views-exposed-form input[type="text"] {
    min-width: 140px;
  }
}

/* ============================================================
   Resource Repository table (publications view) - /resource and
   the "For Advocates" category pages (/practice-resources,
   /legal-publications, /ethics-standards). Reuses the CLE table's
   exposed-form chrome and the site's .zls-badge pill component.
   ============================================================ */
.zls-resource-table-wrap {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.zls-resource-table-wrap .views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.zls-resource-table-wrap .views-exposed-form .form-item { margin: 0; }
.zls-resource-table-wrap .views-exposed-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--zls-navy);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.zls-resource-table-wrap .views-exposed-form select,
.zls-resource-table-wrap .views-exposed-form input[type="text"] {
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  min-width: 200px;
}
.zls-resource-table-wrap .views-exposed-form .form-actions { display: flex; gap: 8px; }
.zls-resource-table-wrap .views-exposed-form .form-submit {
  background: var(--zls-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.zls-resource-table-wrap .views-exposed-form .form-submit:hover { background: var(--zls-navy-2); }
.zls-resource-table-wrap .views-exposed-form .form-submit[value="Reset"] {
  background: transparent;
  color: var(--zls-navy);
  border: 1px solid #CBD5E1;
}
.zls-resource-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 760px;
}
.zls-resource-table-wrap .view-content { overflow-x: auto; }
.zls-resource-table-wrap thead th {
  background: var(--zls-navy);
  color: #fff;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 12px 14px;
  white-space: nowrap;
}
.zls-resource-table-wrap tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: top;
  color: #1E293B;
}
.zls-resource-table-wrap tbody tr:hover td { background: #F8FAFC; }
.zls-resource-table-wrap td.resource-col-title { max-width: 360px; }
.zls-resource-table-wrap .resource-col-title-main {
  font-weight: 700;
  color: var(--zls-navy);
}
.zls-resource-table-wrap td.resource-col-ref {
  white-space: nowrap;
  font-weight: 600;
  color: #475569;
}
.zls-resource-table-wrap td.resource-col-action { text-align: right; white-space: nowrap; }
.zls-resource-table-wrap .resource-badge-practice_resources { background: #E0F2FE; color: #0369A1; border: 1px solid rgba(3, 105, 161, 0.2); text-transform: uppercase; }
.zls-resource-table-wrap .resource-badge-legal_publications { background: rgba(200, 147, 39, 0.15); color: #886414; border: 1px solid rgba(200, 147, 39, 0.3); text-transform: uppercase; }
.zls-resource-table-wrap .resource-badge-ethics_standards { background: #ECFDF5; color: #047857; border: 1px solid rgba(4, 120, 87, 0.2); text-transform: uppercase; }
.zls-resource-table-wrap td.resource-col-action a.file,
.zls-resource-table-wrap td.resource-col-action a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 147, 39, 0.1);
  border: 1px solid rgba(200, 147, 39, 0.3);
  color: var(--zls-navy) !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 5px;
  text-decoration: none !important;
  white-space: nowrap;
}
.zls-resource-table-wrap td.resource-col-action a:hover {
  background: var(--zls-gold, #C59B27);
  color: #fff !important;
}
.zls-resource-table-wrap td.resource-col-action a::before {
  content: "";
  display: none;
}
.zls-resource-table-wrap td.resource-col-action .file-icon { display: none; }
@media (max-width: 767.98px) {
  .zls-resource-table-wrap .views-exposed-form select,
  .zls-resource-table-wrap .views-exposed-form input[type="text"] {
    min-width: 140px;
  }
}

/* ============================================================
   "Find an Advocate" directory - modal shell + the
   advocate_directory View (embedded both inside the modal and
   standalone at /advocate-directory), ported look/feel from the
   client's zls_official_website_complete.html mockup. See
   node--advocate.html.twig for the row/profile markup and
   views-view--advocate-directory.html.twig for the toolbar.
   ============================================================ */
.zls-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 27, 51, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.zls-modal-backdrop[hidden] {
  display: none;
}
.zls-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.zls-modal-header {
  background: var(--zls-navy);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--zls-gold);
  flex: 0 0 auto;
}
.zls-modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--zls-gold-2);
  margin-bottom: 4px;
}
.zls-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}
.zls-modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.zls-modal-subtitle {
  font-size: 12px;
  color: #cbd5e1;
  margin: 3px 0 0;
}
.zls-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  line-height: 0;
}
.zls-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.zls-modal-close svg {
  width: 20px;
  height: 20px;
}
.zls-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
}
.zls-modal-body .zls-advocate-list {
  max-height: 44vh;
  overflow-y: auto;
  padding: 4px 20px 16px;
}

/* Exposed filter form (search / practitioner type / sort). */
.zls-advocate-directory .views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}
.zls-advocate-directory .views-exposed-form .form-item {
  margin: 0;
}
.zls-advocate-directory .views-exposed-form .form-item-search {
  flex: 1 1 260px;
}
.zls-advocate-directory .views-exposed-form label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.zls-advocate-directory .views-exposed-form select,
.zls-advocate-directory .views-exposed-form input[type="text"] {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  min-width: 160px;
}
.zls-advocate-directory .views-exposed-form input[type="text"]:focus,
.zls-advocate-directory .views-exposed-form select:focus {
  outline: none;
  border-color: var(--zls-gold);
  box-shadow: 0 0 0 3px rgba(200, 147, 39, 0.18);
}
.zls-advocate-directory .views-exposed-form .form-actions {
  display: flex;
  gap: 8px;
}
.zls-advocate-directory .views-exposed-form .form-submit {
  background: var(--zls-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.zls-advocate-directory .views-exposed-form .form-submit:hover {
  background: var(--zls-navy-2);
}
.zls-advocate-directory .views-exposed-form .form-submit[value="Reset"] {
  background: transparent;
  color: var(--zls-navy);
  border: 1px solid #CBD5E1;
}

/* Toolbar: HC Active toggle + Export CSV. */
.zls-advocate-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
}
.zls-advocate-hc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  background: #ECFDF5;
  border: 1px solid rgba(4, 120, 87, 0.3);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  user-select: none;
}
.zls-advocate-hc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.zls-advocate-hc-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex: 0 0 auto;
}
.zls-advocate-hc-toggle:has(input:checked) {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.zls-advocate-hc-toggle:has(input:checked) .zls-advocate-hc-toggle-dot {
  background: #fff;
}
.zls-advocate-hc-toggle:has(input:focus-visible) {
  outline: 2px solid var(--zls-gold);
  outline-offset: 2px;
}
.zls-advocate-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .15s ease;
}
.zls-advocate-export-btn:hover {
  background: #F1F5F9;
}
.zls-advocate-export-btn svg {
  width: 14px;
  height: 14px;
  color: #64748B;
}

/* Results status bar. */
.zls-advocate-result-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 20px;
  background: #F1F5F9;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #E2E8F0;
}

/* Row list. */
.zls-advocate-list {
  padding: 4px 20px 20px;
}
.zls-advocate-directory-page .zls-advocate-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}
.zls-advocate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid #E2E8F0;
  transition: background-color .15s ease;
}
.zls-advocate-row:hover {
  background: #F8FAFC;
}
.zls-hide-non-hc .zls-advocate-row:not([data-hc-verified="1"]) {
  display: none;
}
.zls-advocate-row-photo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}
.zls-advocate-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zls-advocate-main {
  min-width: 0;
  flex: 1 1 320px;
}
.zls-advocate-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.zls-advocate-name {
  font-weight: 700;
  color: var(--zls-navy);
  font-size: 15px;
  text-decoration: none;
}
.zls-advocate-name:hover {
  color: var(--zls-gold);
}
.zls-advocate-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}
.zls-advocate-meta .dot {
  color: #CBD5E1;
}
.zls-advocate-roll {
  font-weight: 700;
  color: var(--zls-navy);
}
.zls-advocate-location {
  color: #64748B;
}
.zls-advocate-cert {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  margin-top: 4px;
}
.zls-advocate-notes {
  font-size: 11px;
  color: #64748B;
  font-style: italic;
  margin-top: 2px;
}
.zls-advocate-side {
  text-align: right;
  flex: 0 0 auto;
}
.zls-advocate-side-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}
.zls-advocate-side-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--zls-gold);
}
.zls-advocate-granted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  margin-top: 3px;
}
.zls-advocate-granted svg {
  width: 12px;
  height: 12px;
  color: #10b981;
}

@media (max-width: 640px) {
  .zls-advocate-side {
    text-align: left;
  }
  .zls-advocate-row {
    flex-direction: column;
  }
}

/* Single advocate profile page (default/full view mode). */
.zls-advocate-profile {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 16px 40px;
}
.zls-advocate-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.zls-advocate-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--zls-navy);
  color: var(--zls-gold-2);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--zls-gold);
  flex: 0 0 auto;
  overflow: hidden;
}
.zls-advocate-avatar-photo {
  padding: 0;
}
.zls-advocate-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zls-advocate-profile-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  color: var(--zls-navy);
  margin: 0 0 8px;
}
.zls-advocate-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zls-advocate-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.zls-advocate-profile-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.zls-advocate-profile-item .label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.zls-advocate-profile-item .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--zls-navy);
}
.zls-advocate-profile-item .value a {
  color: inherit;
}
.zls-advocate-tags-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.zls-advocate-tags .field {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.zls-advocate-tags .field__item {
  background: #F1F5F9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.zls-advocate-notes-block {
  font-size: 13px;
  color: #475569;
  font-style: italic;
  border-left: 3px solid var(--zls-gold);
  padding-left: 14px;
  margin-bottom: 20px;
}
.zls-advocate-granted-profile {
  font-size: 12px;
  border-top: 1px solid #E2E8F0;
  padding-top: 16px;
}
.zls-advocate-granted-profile svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 640px) {
  .zls-advocate-profile-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   ZANZIBAR LAW SOCIETY - 2026 OFFICIAL ENHANCEMENTS
   ============================================================ */

/* Topbar Hotline & Portal Button */
.zls-revised-topbar-wrapper a {
  transition: all 0.2s ease-in-out;
}
.my-zls-portal-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.lang-switch-link:hover {
  background: rgba(252, 211, 77, 0.15);
}

/* Practice Resources & ZLR Box */
.zls-resources-section a:hover {
  color: #d97706 !important;
  text-decoration: underline !important;
}

/* Ensure clean display on mobile */
@media (max-width: 768px) {
  .zls-revised-topbar-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}