/*
Theme Name: Jay DoLaw Theme
Theme URI: https://dolaw.100.jaysoft.dev
Author: Jay
Description: DoLaw immigration law firm theme cloned from immigration.net
Version: 20260520.1001
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jay-dolaw
*/

/* ── Tailwind Custom Color Fallbacks ─────────────── */
.font-montserrat { font-family: "Montserrat", sans-serif; }

.bg-navy { background-color: #1e2d55 !important; }
.bg-cream { background-color: #f9f6ed !important; }
.bg-gold { background-color: #936c34 !important; }
.bg-palegold { background-color: #c6a561 !important; }
.bg-white { background-color: #ffffff !important; }
.bg-gray-300 { background-color: #d1d5db !important; }
.bg-lightblue { background-color: #e8f4fc !important; }

.text-navy { color: #1e2d55 !important; }
.text-cream { color: #f9f6ed !important; }
.text-gold { color: #936c34 !important; }
.text-palegold { color: #c6a561 !important; }
.text-ink { color: #212121 !important; }
.text-muted { color: #4e4e4e !important; }
.text-action { color: #2c5cc9 !important; }
.text-white { color: #ffffff !important; }
.text-lightblue { color: #e8f4fc !important; }

.border-navy { border-color: #1e2d55 !important; }
.border-gold { border-color: #936c34 !important; }
.border-palegold { border-color: #c6a561 !important; }
.border-white { border-color: #ffffff !important; }

/* Opacity variants */
.bg-navy\/10 { background-color: rgba(30, 45, 85, 0.1) !important; }
.bg-navy\/20 { background-color: rgba(30, 45, 85, 0.2) !important; }
.text-white\/20 { color: rgba(255, 255, 255, 0.2) !important; }
.text-white\/50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7) !important; }
.text-white\/75 { color: rgba(255, 255, 255, 0.75) !important; }
.text-white\/95 { color: rgba(255, 255, 255, 0.95) !important; }
.text-navy\/50 { color: rgba(30, 45, 85, 0.5) !important; }
.border-white\/60 { border-color: rgba(255, 255, 255, 0.6) !important; }
.border-navy\/50 { border-color: rgba(30, 45, 85, 0.5) !important; }

/* ── Top Bar Lang Switcher ────────────────────────── */
.top-lang-link {
  color: #212121;
  transition: opacity 0.2s;
}
.top-lang-link:hover {
  opacity: 0.6;
}
.top-lang-selected {
  color: #936c34;
  font-weight: 600;
  cursor: default;
}

/* ── Base ─────────────────────────────────────────── */
html, body {
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #212121;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Typography ──────────────────────────────────── */
.section-title {
  font-size: clamp(2rem, 3.2vw, 2.125rem);
  line-height: 44px;
  font-weight: 600;
}

.body-copy {
  font-size: 14px;
  line-height: 26px;
  color: #4e4e4e;
}

.body-copy p {
  margin-bottom: 1.25em !important;
}

.body-copy h2,
.body-copy h3 {
  margin-top: 2em !important;
  margin-bottom: 0.75em !important;
}

/* ── Article Gallery ─────────────────────────────────── */
.body-copy .wp-block-gallery,
.body-copy .gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 6px;
  margin-top: 1.5em;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  height: 360px;
  cursor: grab;
  user-select: none;
}

.body-copy .wp-block-gallery::-webkit-scrollbar,
.body-copy .gallery::-webkit-scrollbar {
  display: none;
}

/* Kill ALL Gutenberg gallery constraints — classic + nested */
.body-copy .wp-block-gallery .blocks-gallery-item,
.body-copy .wp-block-gallery > figure,
.body-copy .wp-block-gallery figure.wp-block-image,
.body-copy .gallery .gallery-item,
.body-copy .gallery .gallery-icon {
  flex: 0 0 auto !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  scroll-snap-align: start;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
}

/* Classic gallery: kill column grid */
.body-copy .gallery {
  column-count: unset !important;
  columns: unset !important;
}
.body-copy .gallery .gallery-icon a,
.body-copy .gallery .gallery-icon {
  display: flex !important;
  height: 100% !important;
}

.body-copy .wp-block-gallery img,
.body-copy .wp-block-gallery figure img,
.body-copy .gallery img,
.body-copy .gallery figure img {
  width: auto !important;
  height: 100% !important;
  max-height: 360px;
  max-width: 85vw !important;
  min-width: auto !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
  position: static !important;
}

/* Gallery carousel arrows */
.gallery-arrow-wrap {
  position: relative;
  margin-top: 1.5em;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #936c34;
  background: #fff;
  color: #936c34;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.gallery-arrow:hover {
  background: #936c34;
  color: #fff;
}
.gallery-arrow-prev { left: -50px; }
.gallery-arrow-next { right: -50px; }
.gallery-arrow-wrap .wp-block-gallery,
.gallery-arrow-wrap .gallery { margin-top: 0; }
@media (max-width: 640px) {
  .gallery-arrow { display: none; }
}

/* ── Lightbox ─────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}
.lightbox-overlay.active { display: flex; }
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 40px;
  text-align: center;
}
.lightbox-swiper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 0 40px;
}
.lightbox-swiper::-webkit-scrollbar { display: none; }
.lightbox-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-slide img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: -apple-system, sans-serif;
  z-index: 10001;
}

/* Lightbox prev/next arrows */
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.lightbox-arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 768px) {
  .lightbox-arrow { width: 36px; height: 36px; font-size: 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ── Testimonial ─────────────────────────────────── */
.testimonial-band {
  padding: 32px 0;
}

.testimonial-photo-wrap {
  min-height: 492px;
}

.testimonial-photo {
  display: block;
  height: 100%;
  min-height: 492px;
  width: 100%;
  object-fit: cover;
}

.testimonial-panel {
  position: relative;
  display: flex;
  min-height: 492px;
  flex-direction: column;
  justify-content: center;
  padding: 56px 92px 58px 68px;
}

.testimonial-quote {
  position: absolute;
  right: 4px;
  top: -76px;
}

.testimonial-dots {
  margin-top: 86px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.testimonial-dots span {
  display: block;
  height: 12px;
  width: 12px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.testimonial-dots .is-active {
  background: #fff;
}

/* ── Practice Tabs ───────────────────────────────── */
#practice {
  overflow-x: hidden;
}

.practice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: relative;
  border-bottom: 2px solid #c6a561;
}

.practice-tabs::before {
  content: "";
  position: absolute;
  left: calc(-1 * (50vw - 50%));
  right: calc(-1 * (50vw - 50%));
  bottom: -2px;
  height: 2px;
  background: #c6a561;
  z-index: 0;
}

.practice-tab {
  position: relative;
  z-index: 1;
}

.practice-tab a,
.practice-tab button {
  display: block;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #4e4e4e;
  background: #f0ebe0;
  border-radius: 4px 4px 0 0;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.practice-tab.active a,
.practice-tab.active button {
  background: linear-gradient(180deg, #f9f6ed 0%, #f0e6d0 100%);
  color: #936c34;
  border: 2px solid #c6a561;
  border-bottom: 2px solid #f9f6ed;
  margin-bottom: -2px;
  position: relative;
  z-index: 2;
}

.practice-tab:not(.active) a:hover,
.practice-tab:not(.active) button:hover {
  background: #e8e0d0;
  color: #936c34;
}

/* Sub Tabs */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  border-bottom: 2px solid #d1d5db;
}

.sub-tabs a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #212121;
  padding: 10px 15px 8px;
  border-bottom: 4px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.sub-tabs a:hover {
  color: #936c34;
}

.sub-tabs a.active {
  color: #936c34;
  border-bottom-color: #936c34;
}

/* ── Topic Carousel ──────────────────────────────── */
.topic-carousel,
.static-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 9.33px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

/* scrollbar-hide utility */
.scrollbar-hide { scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* related-card (single post carousel cards) */
.related-card img { transition: transform 0.3s ease; }
.related-card:hover img { transform: scale(1.05); }

/* related-carousel arrows */
.related-carousel-wrap { position: relative; }
.related-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #936c34;
  background: #fff;
  color: #936c34;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s;
}
.related-carousel-arrow:hover {
  background: #936c34;
  color: #fff;
}
.related-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.related-carousel-arrow:disabled:hover {
  background: #fff;
  color: #936c34;
}
.related-carousel-prev { left: -50px; }
.related-carousel-next { right: -50px; }
@media (max-width: 640px) {
  .related-carousel-arrow { display: none; }
}

.topic-carousel::-webkit-scrollbar,
.static-carousel::-webkit-scrollbar {
  display: none;
}

.topic-carousel > article,
.static-carousel > article {
  scroll-snap-align: start;
}

/* ── Page Hero ───────────────────────────────────── */
.page-hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 2rem;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

/* ── Cards ───────────────────────────────────────── */
.article-card img,
.staff-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

/* ── Modal ───────────────────────────────────────── */
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.active .new-booking {
  opacity: 1;
  transform: scale(1);
}

/* Hide featured image on single success story */
body.single-success_story article > div > img.wp-post-image {
  display: none !important;
}

/* ── Nav Hover Underline ─────────────────────────── */
nav a:not([class*="bg-"]):not(.site-logo) {
  position: relative;
}

nav a:not([class*="bg-"]):not(.site-logo)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #c6a561;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav a:not([class*="bg-"]):not(.site-logo):hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Button Styles ──────────────────────────────── */
/* === OUTLINE (default) === */
a[class*="bg-gold"]:not(.solid):not(.nav-btn),
a[class*="bg-navy"]:not(.solid):not(.nav-btn),
a[class*="bg-palegold"]:not(.solid):not(.nav-btn),
button[class*="bg-gold"]:not(.solid):not(.nav-btn),
button[class*="bg-navy"]:not(.solid):not(.nav-btn),
button[class*="bg-palegold"]:not(.solid):not(.nav-btn) {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent !important;
  border: 2px solid !important;
}

/* outline ::before defaults */
a[class*="bg-gold"]:not(.solid):not(.nav-btn)::before,
a[class*="bg-navy"]:not(.solid):not(.nav-btn)::before,
a[class*="bg-palegold"]:not(.solid):not(.nav-btn)::before,
button[class*="bg-gold"]:not(.solid):not(.nav-btn)::before,
button[class*="bg-navy"]:not(.solid):not(.nav-btn)::before,
button[class*="bg-palegold"]:not(.solid):not(.nav-btn)::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

/* per-color: border + text */
a[class*="bg-gold"]:not(.solid):not(.nav-btn),
button[class*="bg-gold"]:not(.solid):not(.nav-btn) {
  border-color: #936c34 !important;
  color: #936c34 !important;
}
a[class*="bg-navy"]:not(.solid):not(.nav-btn),
button[class*="bg-navy"]:not(.solid):not(.nav-btn) {
  border-color: #1e2d55 !important;
  color: #1e2d55 !important;
}
a[class*="bg-palegold"]:not(.solid):not(.nav-btn),
button[class*="bg-palegold"]:not(.solid):not(.nav-btn) {
  border-color: #c6a561 !important;
  color: #c6a561 !important;
}

/* per-color ::before bg */
a[class*="bg-gold"]:not(.solid):not(.nav-btn)::before,
button[class*="bg-gold"]:not(.solid):not(.nav-btn)::before { background: #936c34; }
a[class*="bg-navy"]:not(.solid):not(.nav-btn)::before,
button[class*="bg-navy"]:not(.solid):not(.nav-btn)::before { background: #1e2d55; }
a[class*="bg-palegold"]:not(.solid):not(.nav-btn)::before,
button[class*="bg-palegold"]:not(.solid):not(.nav-btn)::before { background: #c6a561; }

/* outline hover */
a[class*="bg-gold"]:not(.solid):not(.nav-btn):hover::before,
a[class*="bg-navy"]:not(.solid):not(.nav-btn):hover::before,
a[class*="bg-palegold"]:not(.solid):not(.nav-btn):hover::before,
button[class*="bg-gold"]:not(.solid):not(.nav-btn):hover::before,
button[class*="bg-navy"]:not(.solid):not(.nav-btn):hover::before,
button[class*="bg-palegold"]:not(.solid):not(.nav-btn):hover::before {
  transform: scaleX(1);
}
a[class*="bg-gold"]:not(.solid):not(.nav-btn):hover,
button[class*="bg-gold"]:not(.solid):not(.nav-btn):hover {
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(147, 108, 52, 0.35);
}
a[class*="bg-navy"]:not(.solid):not(.nav-btn):hover,
button[class*="bg-navy"]:not(.solid):not(.nav-btn):hover {
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(30, 45, 85, 0.35);
}
a[class*="bg-palegold"]:not(.solid):not(.nav-btn):hover,
button[class*="bg-palegold"]:not(.solid):not(.nav-btn):hover {
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(198, 165, 97, 0.35);
}

/* === NAV-BTN (header: white border/text, ::before hover) === */
a.nav-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}
a.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}
a.bg-gold.nav-btn::before { background: #936c34; }
a.bg-navy.nav-btn::before { background: #1e2d55; }
a.nav-btn:hover::before { transform: scaleX(1); }
a.nav-btn:hover { color: #ffffff !important; }

/* === SOLID (full bg, no ::before) === */
a.bg-gold.solid,
button.bg-gold.solid {
  background: #936c34 !important;
  color: #ffffff !important;
  border: none !important;
}
a.bg-navy.solid,
button.bg-navy.solid {
  background: #1e2d55 !important;
  color: #ffffff !important;
  border: none !important;
}
a.bg-gold.solid:hover,
button.bg-gold.solid:hover {
  background: #1e2d55 !important;
  color: #ffffff !important;
}
a.bg-navy.solid:hover,
button.bg-navy.solid:hover {
  background: #936c34 !important;
  color: #ffffff !important;
}

/* ── No hover animation override ────────────────── */
a.no-bg-anim::before,
button.no-bg-anim::before {
  content: none;
}
a.no-bg-anim:hover {
  box-shadow: none;
}

/* ── Scroll Reveal Animations ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1023px) {
  .testimonial-panel {
    min-height: auto;
    padding: 48px 24px;
  }

  .testimonial-photo-wrap,
  .testimonial-photo {
    min-height: 360px;
  }

  .testimonial-quote {
    right: 0;
    top: -58px;
  }

  .testimonial-dots {
    margin-top: 48px;
  }
}
/* ── Hero Swiper ───────────────────────────────── */
.hero-swiper-section {
  min-height: 100vh;
}
.hero-swiper-section .swiper-slide {
  min-height: 100vh;
  height: auto !important;
}
.hero-pagination.swiper-pagination-bullets {
  bottom: 30px !important;
}
.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  opacity: 1;
  margin: 0 5px !important;
  transition: background 0.3s, width 0.3s;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: #c6a561;
  width: 48px;
}
@media (max-width: 767px) {
  .hero-swiper-section {
    min-height: 100vh;
    height: auto;
  }
  .hero-swiper-section .swiper-slide {
    min-height: 100vh;
    padding-bottom: 80px;
  }
  .hero-swiper-section .swiper-slide > .relative {
    justify-content: flex-start !important;
    padding-top: 140px !important;
  }
}

/* Hero slider refresh */
.hero-swiper-section,
.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper-section .swiper-slide {
  height: calc(100vh - 48px) !important;
  min-height: 620px;
}

.hero-swiper-section {
  max-height: calc(100vh - 48px);
}

.hero-slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: clamp(128px, 17vh, 164px);
  padding-bottom: 168px;
}

.hero-copy-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 34px);
  max-width: 720px;
  width: 100%;
  margin-left: auto;
}

.hero-title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 0.98;
}

.hero-intro {
  max-width: 600px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}

.hero-cta {
  height: 48px;
  min-width: max-content;
}

.hero-progress-rail {
  position: relative;
  width: 3px;
  min-height: 172px;
  flex: 0 0 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.hero-progress-rail span {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: #c6a561;
}

.hero-swiper .swiper-slide-active .hero-progress-rail span {
  animation: heroProgress 6.2s linear forwards;
}

@keyframes heroProgress {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.hero-sublinks {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  max-width: none;
  margin-top: 0;
  margin-left: 0;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 21, 40, 0.72);
  backdrop-filter: blur(4px);
  gap: 0 !important;
}

.hero-sublink {
  grid-column: auto !important;
  min-height: 112px;
  max-width: none !important;
  border-width: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
  padding: 22px 24px !important;
  background: transparent;
}

.hero-sublink:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.hero-sublink:last-child {
  border-right: 0 !important;
}

.hero-sublink span:first-child {
  color: #ffffff;
  font-size: clamp(13px, 1vw, 15px);
}

.hero-sublink span + span {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: clamp(11px, 0.9vw, 13px);
}

.hero-pagination.swiper-pagination-bullets {
  display: none;
}

.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 4px;
  margin: 0 5px !important;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.34);
  opacity: 1;
  transition: background 0.3s, width 0.3s;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 48px;
  background: #c6a561;
}

@media (max-width: 1023px) {
  .hero-swiper-section,
  .hero-swiper,
  .hero-swiper .swiper-wrapper,
  .hero-swiper-section .swiper-slide {
    min-height: 620px;
  }

  .hero-slide-content {
    padding-top: 120px;
    padding-bottom: 186px;
  }

  .hero-sublink {
    min-height: 88px;
    padding: 16px 18px !important;
  }
}

@media (max-width: 767px) {
  .hero-swiper-section,
  .hero-swiper,
  .hero-swiper .swiper-wrapper,
  .hero-swiper-section .swiper-slide {
    height: calc(100vh - 48px) !important;
    min-height: 700px;
  }

  .hero-slide-content {
    justify-content: flex-start;
    padding-top: 104px;
    padding-bottom: 246px;
  }

  .hero-copy-wrap {
    gap: 14px;
  }

  .hero-progress-rail {
    min-height: 138px;
  }

  .hero-title {
    font-size: 27px;
    line-height: 1.02;
  }

  .hero-intro {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-cta {
    height: 46px;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .hero-sublinks {
    left: 0;
    right: 0;
    margin-top: 0;
    gap: 10px !important;
    grid-template-columns: 1fr !important;
    max-width: none;
    border-top-color: rgba(255, 255, 255, 0.18);
  }

  .hero-sublink {
    min-height: 0;
    padding: 12px 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  }

  .hero-sublink span:first-child {
    font-size: 12px;
  }

  .hero-sublink span + span {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .hero-swiper-section,
  .hero-swiper,
  .hero-swiper .swiper-wrapper,
  .hero-swiper-section .swiper-slide {
    min-height: 740px;
  }

  .hero-title {
    font-size: 24px;
  }
}

/* Slider Revolution style hero tabs - final cascade override */
.hero-swiper .hero-pagination {
  display: none !important;
}

.hero-swiper .hero-bottom-links {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 28px !important;
  z-index: 9999 !important;
  display: block !important;
  width: min(1120px, calc(100% - 96px)) !important;
  transform: translateX(-50%) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

.hero-swiper .hero-bottom-panel {
  display: none !important;
  width: 100% !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(198px, 1fr) !important;
  gap: 14px !important;
}

.hero-swiper .hero-bottom-panel.is-active {
  display: grid !important;
}

.hero-swiper .hero-bottom-link {
  position: relative !important;
  display: flex !important;
  min-height: 92px !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
  padding: 18px 20px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  color: #fff !important;
  background-image: linear-gradient(180deg, rgba(8, 16, 32, 0.16), rgba(8, 16, 32, 0.82)), var(--hero-tab-img) !important;
  background-position: center !important;
  background-size: cover !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
}

.hero-swiper .hero-bottom-link::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.hero-swiper .hero-bottom-panel.is-active .hero-bottom-link:first-child::before {
  background: #c6a561 !important;
}

.hero-swiper .hero-bottom-link span,
.hero-swiper .hero-bottom-link small {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55) !important;
}

.hero-swiper .hero-bottom-link span {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.hero-swiper .hero-bottom-link small {
  margin-top: 4px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

/* Final hero layout: banner starts below the full header/nav stack. */
body.home .hero-swiper-section {
  height: calc(100vh - 48px) !important;
  min-height: 620px !important;
  max-height: calc(100vh - 48px) !important;
  margin-top: 0 !important;
}

body.home .hero-swiper,
body.home .hero-swiper > .swiper-wrapper,
body.home .hero-swiper .swiper-slide {
  height: 100% !important;
  min-height: 620px !important;
}

body.home .hero-swiper .swiper-slide {
  position: relative !important;
}

body.home .hero-slide-content {
  position: static !important;
  height: 100% !important;
  justify-content: flex-start !important;
  padding-top: clamp(118px, 17vh, 148px) !important;
  padding-bottom: 148px !important;
}

body.home .hero-copy-wrap {
  position: relative !important;
  z-index: 3 !important;
}

body.home .hero-sublinks {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 4 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  gap: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
  background: rgba(14, 24, 43, 0.78) !important;
  backdrop-filter: blur(5px);
}

body.home .hero-sublink {
  grid-column: auto !important;
  max-width: none !important;
  min-height: 124px !important;
  padding: 25px 30px !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.17) !important;
  background: transparent !important;
}

body.home .hero-sublink:last-child {
  border-right: 0 !important;
}

body.home .hero-pagination {
  display: none !important;
}

body.home .hero-bottom-links {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 28px !important;
  z-index: 30 !important;
  width: min(1120px, calc(100% - 96px)) !important;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: auto;
}

body.home .hero-bottom-panel {
  display: none;
  width: 100%;
  grid-auto-flow: column;
  grid-auto-columns: minmax(198px, 1fr);
  gap: 14px;
}

body.home .hero-bottom-panel.is-active {
  display: grid;
}

body.home .hero-bottom-link {
  position: relative;
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background-image: linear-gradient(180deg, rgba(8, 16, 32, 0.16), rgba(8, 16, 32, 0.82)), var(--hero-tab-img);
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.home .hero-bottom-link:hover {
  border-color: #c6a561;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

body.home .hero-bottom-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.72);
}

body.home .hero-bottom-panel.is-active .hero-bottom-link:first-child::before {
  background: #c6a561;
}

body.home .hero-bottom-link span {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

body.home .hero-bottom-link small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

@media (max-width: 1023px) {
  body.home .hero-swiper-section {
    height: calc(100vh - 120px) !important;
    min-height: 600px !important;
    max-height: calc(100vh - 120px) !important;
    margin-top: 72px !important;
  }

  body.home .hero-swiper,
  body.home .hero-swiper > .swiper-wrapper,
  body.home .hero-swiper .swiper-slide {
    min-height: 600px !important;
  }

  body.home .hero-slide-content {
    padding-top: 58px !important;
    padding-bottom: 188px !important;
  }

  body.home .hero-sublink {
    min-height: 94px !important;
    padding: 17px 20px !important;
  }

  body.home .hero-bottom-link {
    min-height: 82px;
    padding: 14px 16px 13px;
  }
}

@media (max-width: 767px) {
  body.home .hero-swiper-section {
    height: auto !important;
    min-height: 700px !important;
    max-height: none !important;
    margin-top: 72px !important;
  }

  body.home .hero-slide-content {
    min-height: 700px !important;
    padding-top: 46px !important;
    padding-bottom: 280px !important;
  }

  body.home .hero-sublinks {
    grid-template-columns: 1fr !important;
  }

  body.home .hero-sublink {
    min-height: 0 !important;
    padding: 12px 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  }

  body.home .hero-bottom-panel {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.home .hero-bottom-link {
    min-height: 74px;
    padding: 12px 16px;
  }
}
.hero-slide-bg,.hero-slide-overlay{position:absolute;inset:0;width:100%;height:100%}.hero-slide-bg{background-size:cover;background-position:center}.hero-slide-overlay{background:rgba(0,0,0,.6)}.hero-slide-content{position:relative;z-index:2;height:100%}
.hero-slide-content{color:#fff}.hero-title{color:#fff}.hero-intro{color:#fff}.hero-cta{position:relative;overflow:hidden;z-index:1;display:inline-flex;align-items:center;height:48px;padding:0 32px;background:transparent;color:#936c34;border:2px solid #936c34;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;text-decoration:none}.hero-cta::before{content:"";position:absolute;inset:0;transform:scaleX(0);transform-origin:left;transition:transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);z-index:-1;background:#936c34}.hero-cta:hover::before{transform:scaleX(1)}.hero-cta:hover{color:#fff}
.hero-slide-bg{z-index:0}.hero-slide-overlay{z-index:1}

/* Home hero polish after CSS syntax recovery */
body.home .hero-copy-wrap {
  align-items: flex-start !important;
}

body.home .hero-cta {
  width: auto !important;
  max-width: max-content !important;
}

body.home .hero-sublink span {
  display: block !important;
}

/* Keep desktop hero navigation compact at laptop widths */
@media (min-width: 1024px) and (max-width: 1320px) {
  header nav .gap-7 {
    gap: 18px !important;
  }

  header nav a:not(.site-logo) {
    white-space: nowrap !important;
  }

  header nav .gap-3 a[class*="bg-"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 14px !important;
  }
}

/* Section 2 about slider service highlights, modeled after immigration.net icon text rows */
.about-service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(30, 45, 85, 0.14);
}

.about-service-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(30, 45, 85, 0.14);
}

.about-service-icon {
  position: relative;
  width: 38px;
  height: 38px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid rgba(147, 108, 52, 0.34);
  background: rgba(255, 255, 255, 0.68);
}

.about-service-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 13px;
  height: 13px;
  border-top: 3px solid #9f9f9f;
  border-right: 3px solid #9f9f9f;
  transform: rotate(45deg);
}

.about-service-item h3 {
  margin: 0 0 8px;
  color: #936c34;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-service-item p {
  margin: 0;
  color: #4e4e4e;
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .about-service-item {
    grid-template-columns: 38px 1fr;
    gap: 16px;
  }
}

/* Section 3 practice tab refinements */
.practice-category-tabs {
  background: transparent;
  border-bottom: 2px solid #d1d5db;
  gap: 0;
  padding: 0;
}

.practice-category-tabs a {
  flex: 1 1 auto;
  color: #212121 !important;
  background: transparent;
  border-bottom: 4px solid transparent;
  text-align: left;
  padding: 10px 20px 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.practice-category-tabs a:hover {
  color: #936c34 !important;
}

.practice-category-tabs a.active {
  color: #936c34 !important;
  border-bottom-color: #936c34;
  background: transparent;
}

.practice-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 45, 85, 0.14);
}

.practice-link-grid a {
  position: relative;
  padding-left: 18px;
  color: #1e2d55;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.practice-link-grid a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-top: 2px solid #936c34;
  border-right: 2px solid #936c34;
  transform: rotate(45deg);
}

.practice-link-grid a:hover {
  color: #936c34;
}

@media (max-width: 767px) {
  .practice-link-grid {
    grid-template-columns: 1fr;
  }

  .practice-category-tabs a {
    flex-basis: 100%;
    text-align: left;
  }
}

/* Home Section 4 single featured attorney */
.home-featured-attorney {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Layered team archive */
.team-layer + .team-layer {
  margin-top: 96px;
  padding-top: 80px;
  border-top: 1px solid rgba(30, 45, 85, 0.14);
}

.team-layer-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.team-layer-grid {
  display: grid;
  gap: 28px;
}

.team-layer-attorneys .team-layer-grid {
  max-width: 460px;
}

.team-layer-grid-2 .team-layer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-layer-grid-4 .team-layer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-layer-grid-4 .team-member-card img {
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.team-layer-single .team-layer-grid {
  max-width: 300px;
}

.team-member-card {
  position: relative;
  overflow: hidden;
  background: #1e2d55;
}

.team-member-card img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.team-member-card:hover img {
  transform: scale(1.04);
}

.team-member-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 22px 22px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.team-member-overlay h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.team-member-overlay p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1023px) {
  .team-layer-grid-4 .team-layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .team-layer-grid-2 .team-layer-grid,
  .team-layer-grid-4 .team-layer-grid {
    grid-template-columns: 1fr;
  }

  .team-member-card img {
    height: 390px;
  }
}

/* Utility: explicit hidden class */
.hidden {
  display: none !important;
}

/* Modern testimonial cards */
.testimonial-modern {
  padding: 0;
}

.testimonial-modern-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.testimonial-modern-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: stretch;
}

.testimonial-feature-card,
.testimonial-mini-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(3px);
}

.testimonial-feature-card {
  min-height: 430px;
  padding: 48px 42px 38px;
}

.testimonial-feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.78;
}

.testimonial-mark {
  position: absolute;
  right: 28px;
  top: 4px;
  color: rgba(198, 165, 97, 0.22);
  font-family: Georgia, serif;
  font-size: 132px;
  line-height: 1;
}

.testimonial-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-mini-card {
  min-height: 198px;
  padding: 26px 26px 24px;
}

.testimonial-mini-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

.testimonial-stars {
  color: #c6a561;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.testimonial-author {
  margin-top: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.testimonial-author::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: #c6a561;
}

@media (max-width: 1023px) {
  .testimonial-modern-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .testimonial-card-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-feature-card {
    min-height: auto;
    padding: 34px 26px 30px;
  }

  .testimonial-feature-card p {
    font-size: 16px;
  }
}

.modal-overlay {
  padding: 16px;
}

.modal-container {
  max-height: calc(100vh - 32px);
}

.modal-close {
  line-height: 1;
}

.dolaw-contact-form input[readonly],
.dolaw-contact-form textarea[readonly] {
  cursor: default;
}

.dolaw-contact-form select {
  border-radius: 0;
}

.contact-form-card {
  border-top: 4px solid #936c34;
}
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
}

.nav-dropdown-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  min-width: 250px;
  padding: 10px 0;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: #1e2d55 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #e8f4fc;
  color: #936c34 !important;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.resources-tabs {
  justify-content: center;
}

.resource-content .practice-link-grid a {
  min-height: 54px;
}
.faq-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.faq-tabs .practice-tab {
  width: 100%;
}

.faq-tabs .practice-tab button {
  width: 100%;
  text-align: center;
  background: #f0ebe0;
  color: #4e4e4e;
}

.faq-tabs .practice-tab.active button {
  background: linear-gradient(180deg, #f9f6ed 0%, #f0e6d0 100%);
  color: #936c34;
}

.faq-accordion .faq-item {
  border-left: 4px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion .faq-item[open] {
  border-left-color: #936c34;
  box-shadow: 0 18px 38px rgba(30, 45, 85, 0.12);
}

.faq-accordion summary {
  display: flex;
  min-height: 72px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  color: #1e2d55;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  display: inline-flex;
  height: 30px;
  width: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f4fc;
  color: #936c34;
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] .faq-toggle {
  background: #936c34;
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: #4e4e4e;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .faq-tabs {
    grid-template-columns: 1fr;
  }

  .faq-accordion summary {
    padding: 18px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 18px 20px;
  }
}
/* Immigration.net-style home hero rebuild */
body.home .hero-swiper-section,
body.home .hero-swiper,
body.home .hero-swiper .swiper-wrapper,
body.home .hero-swiper .swiper-slide {
  height: calc(100vh - 48px) !important;
  min-height: 640px !important;
  max-height: none !important;
}

body.home .hero-swiper-section {
  position: relative !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  background: #0c1424;
}

body.home .hero-swiper .swiper-slide {
  position: relative !important;
  overflow: hidden !important;
}

body.home .hero-slide-bg,
body.home .hero-slide-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body.home .hero-slide-bg {
  z-index: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  transform: scale(1.02);
}

body.home .hero-slide-overlay {
  z-index: 1 !important;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.2) 0%, rgba(6, 12, 25, 0.28) 43%, rgba(6, 12, 25, 0.88) 100%),
    linear-gradient(0deg, rgba(4, 8, 18, 0.62) 0%, rgba(4, 8, 18, 0.04) 42%);
}

body.home .hero-slide-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: 128px clamp(28px, 5vw, 78px) 142px !important;
  color: #ffffff !important;
}

body.home .hero-main-copy {
  display: flex !important;
  width: min(580px, 42vw) !important;
  margin-left: auto !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

body.home .hero-progress-rail { position: relative !important; width: 4px !important; height: auto !important; top: 0 !important; bottom: 0 !important; min-height: 0 !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.26) !important;
}

body.home .hero-progress-rail span {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  transform: scaleY(0) !important;
  transform-origin: top !important;
  background: #c6a561 !important;
}

body.home .hero-swiper .swiper-slide-active .hero-progress-rail span {
  animation: heroProgress 6.2s linear forwards !important;
}

body.home .hero-copy-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 22px !important;
  max-width: 620px !important;
}

body.home .hero-kicker {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.home .hero-title {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(31px, 3.5vw, 53px) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.home .hero-cta {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content !important;
  height: 54px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 30px !important;
  background: #936c34 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

body.home .hero-sublinks {
  position: absolute !important;
  left: clamp(20px, 4vw, 70px) !important;
  right: clamp(20px, 4vw, 70px) !important;
  bottom: 0 !important;
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(210px, 1fr) !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  overflow: hidden !important;
  background: rgba(5, 12, 27, 0.78) !important;
  backdrop-filter: blur(2px);
}

body.home .hero-sublink {
  position: relative !important;
  display: flex !important;
  min-height: 118px !important;
  max-width: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 24px 30px 22px !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: transparent !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background 0.22s ease, color 0.22s ease !important;
}

body.home .hero-sublink::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 4px !important;
  background: rgba(198, 165, 97, 0.4) !important;
  transition: background 0.22s ease, height 0.22s ease !important;
}

body.home .hero-sublink:hover,
body.home .hero-sublink:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.home .hero-sublink:hover::before,
body.home .hero-sublink:focus-visible::before {
  height: 5px !important;
  background: #c6a561 !important;
}

body.home .hero-sublink:last-child {
  border-right: 0 !important;
}

body.home .hero-sublink span {
  display: block !important;
  color: #ffffff !important;
  font-size: clamp(13px, 1vw, 16px) !important;
  font-weight: 800 !important;
  line-height: 1.24 !important;
  text-transform: uppercase !important;
}

body.home .hero-sublink small {
  display: block !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(11px, 0.85vw, 13px) !important;
  font-weight: 500 !important;
  line-height: 1.48 !important;
}

body.home .hero-pagination,
body.home .hero-bottom-links,
body.home .hero-bottom-panel {
  display: none !important;
}

@media (max-width: 1023px) {
  body.home .hero-swiper-section,
  body.home .hero-swiper,
  body.home .hero-swiper .swiper-wrapper,
  body.home .hero-swiper .swiper-slide {
    height: calc(100vh - 48px) !important;
    min-height: 720px !important;
  }

  body.home .hero-slide-content {
    justify-content: flex-start !important;
    padding: 128px 24px 252px !important;
  }

  body.home .hero-main-copy {
    width: min(100%, 620px) !important;
    margin-left: 0 !important;
  }

  body.home .hero-sublinks {
    left: 24px !important;
    right: 24px !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    grid-template-columns: 1fr 1fr !important;
  }

  body.home .hero-sublink {
    min-height: 92px !important;
    padding: 18px 20px !important;
  }
}

@media (max-width: 640px) {
  body.home .hero-swiper-section,
  body.home .hero-swiper,
  body.home .hero-swiper .swiper-wrapper,
  body.home .hero-swiper .swiper-slide {
    height: auto !important;
    min-height: 500px !important;
  }

  body.home .hero-slide-content {
    min-height: 500px !important;
    padding: 200px 18px 200px !important;
  }

  body.home .hero-main-copy {
    width: min(520px, 80vw) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.home .hero-title {
    font-size: 28px !important;
  }



  body.home .hero-sublinks {
    left: 18px !important;
    right: 18px !important;
    grid-template-columns: 1fr !important;
  }

  body.home .hero-sublink {
    min-height: 72px !important;
    padding: 13px 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  }
}
/* Hero exact visual pass: centered text, padded tabs, visible progress */
body.home .hero-slide-bg {
  background-position: center center !important;
}

body.home .hero-slide-overlay {
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.08) 0%, rgba(6, 12, 25, 0.14) 42%, rgba(6, 12, 25, 0.58) 100%),
    linear-gradient(0deg, rgba(4, 8, 18, 0.62) 0%, rgba(4, 8, 18, 0.02) 42%) !important;
}

body.home .hero-slide-content {
  justify-content: center !important;
  padding: 118px clamp(28px, 5vw, 78px) 150px !important;
}

body.home .hero-main-copy {
  width: min(580px, 42vw) !important;
  margin-left: auto !important;
  margin-right: 4vw !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

body.home .hero-copy-wrap {
  align-items: center !important;
  text-align: center !important;
}

body.home .hero-kicker {
  text-align: center !important;
}

body.home .hero-title {
  max-width: 650px !important;
  text-align: left !important;
  font-size: clamp(29px, 3vw, 45px) !important;
  line-height: 1.08 !important;
}

body.home .hero-progress-rail { width: 4px !important; height: auto !important; top: 0 !important; bottom: 0 !important; background: rgba(255, 255, 255, 0.36) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body.home .hero-progress-rail span {
  transform: scaleY(0);
  background: #c6a561 !important;
}

body.home .hero-swiper .swiper-slide-active .hero-progress-rail span {
  animation: heroProgress 6.2s linear forwards !important;
}

body.home .hero-sublinks {
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  width: min(100% - 96px, 1290px) !important;
  transform: translateX(-50%) !important;
  justify-content: center !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(220px, 1fr) !important;
  background: transparent !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

body.home .hero-sublink {
  min-height: 128px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 24px 26px 22px !important;
  border-right: 0 !important;
  background: transparent !important;
  opacity: 0.74 !important;
}

body.home .hero-sublink::before {
  left: 26px !important;
  right: 26px !important;
  top: 20px !important;
  width: auto !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.35) !important;
}

body.home .hero-sublink:hover,
body.home .hero-sublink:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  opacity: 1 !important;
}

body.home .hero-sublink:hover::before,
body.home .hero-sublink:focus-visible::before {
  height: 3px !important;
  background: #c6a561 !important;
}

body.home .hero-sublink span {
  margin-top: 20px !important;
  color: #ffffff !important;
  font-size: clamp(15px, 1.15vw, 20px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  text-align: left !important;
}

body.home .hero-sublink small {
  max-width: 260px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(12px, 0.86vw, 15px) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

@media (max-width: 1023px) {
  body.home .hero-main-copy {
    width: min(100%, 620px) !important;
    margin-right: auto !important;
  }

  body.home .hero-sublinks {
    width: calc(100% - 48px) !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row !important;
  }
}

@media (max-width: 640px) {
  body.home .hero-slide-content {
    padding: 112px 18px 322px !important;
  }

  body.home .hero-main-copy {
    width: min(520px, 80vw) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.home .hero-title {
    font-size: 28px !important;
  }

  body.home .hero-sublinks {
    width: calc(100% - 36px) !important;
    grid-template-columns: 1fr !important;
  }

  body.home .hero-sublink {
    min-height: 82px !important;
    padding: 14px 18px !important;
  }

  body.home .hero-sublink::before {
    left: 18px !important;
    right: 18px !important;
    top: 12px !important;
  }

  body.home .hero-sublink span {
    margin-top: 14px !important;
  }
}
#appointment-modal .new-booking {
  position: relative !important;
}

/* Booking submit button — gold fill, hover goes navy (matching existing .solid pattern) */
.booking-submit {
  background: #936c34 !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}
.booking-submit:hover {
  background: #1e2d55 !important;
  color: #ffffff !important;
}

/* Booking modal: scroll on small screens */
#appointment-modal {
  align-items: flex-start !important;
  overflow-y: auto !important;
}
#appointment-modal .new-booking {
  max-height: none !important;
  margin: auto !important;
}
/* Hero copy alignment: match immigration.net left aligned copy on right side */
body.home .hero-main-copy {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

body.home .hero-copy-wrap {
  align-items: flex-start !important;
  text-align: left !important;
}

body.home .hero-kicker,
body.home .hero-title {
  text-align: left !important;
}

body.home .hero-cta {
  align-self: flex-start !important;
}
/* Hero bottom tabs: reference spacing */
body.home .hero-sublinks {
  gap: 10px !important;
}
/* Hero autoplay progress: vertical rail on the left edge of each slide */
body.home .hero-progress-rail {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 9px !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  z-index: 10 !important;
}

body.home .hero-progress-rail span {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  transform: scaleY(var(--progress, 0)) !important;
  transform-origin: top center !important;
  background: #c6a561 !important;
}

/* Glow layer */
body.home .hero-progress-rail span::after {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  display: block !important;
  background: rgba(198, 165, 97, 0.55) !important;
  filter: blur(8px) !important;
  opacity: 0.85 !important;
  border-radius: 999px !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  body.home .hero-progress-rail {
    width: 6px !important;
  }
}

/* JS-driven hero autoplay progress — disable old keyframe animation */
body.home .hero-swiper .swiper-slide-active .hero-progress-rail span {
  animation: none !important;
}

/* ── About Slider ────────────────────────────────── */
.about-track {
  cursor: grab;
  user-select: none;
}
.about-track:active {
  cursor: grabbing;
}

/* 2nd slide 2-column layout */
.about-two-col {
  align-items: start;
}

.about-overline {
  margin-bottom: 0;
}

.about-col-right {
  position: relative;
}

/* Grey-arrow bullet list on top-right of 2nd column */
.about-arrow-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-arrow-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4e4e4e;
}

.about-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #9e9e9e;
  font-size: 14px;
  line-height: 1;
}

.about-service-list .about-service-item {
  display: block;
}

/* Nav CTA buttons: outline white, hover fills with brand colors */
header nav .hidden.items-center.gap-3.lg\:flex > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  padding: 0 24px !important;
  background: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
}

/* ── Blog & Newsletters Pagination ───────────────── */
.page-numbers {
  display: flex;
  list-style: none;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.page-numbers li {
  margin: 0;
}

.page-numbers a,
.page-numbers .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #212121;
  background: #fff;
  transition: all 0.2s ease;
}

.page-numbers a:hover {
  background: #f9f6ed;
  border-color: #c6a561;
  color: #936c34;
}

.page-numbers .current {
  background: #1e2d55;
  border-color: #1e2d55;
  color: #fff;
}

.page-numbers .dots {
  border: none;
  background: transparent;
  padding: 0 4px;
}

/* ── Priority Dates Tables ─────────────────────── */
.priority-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
}

.priority-panel th,
.priority-panel td {
  border: 1px solid #d1d5db;
  padding: 10px 14px;
  text-align: left;
}

.priority-panel th {
  background: #1e2d55;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.priority-panel tr:nth-child(even) {
  background: #f9f6ed;
}

.priority-panel tr:hover {
  background: #f0ebe0;
}

/* ── Line clamp utility ─────────────────────────── */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* FAQ page refined layout */
.faq-page-section {
  position: relative;
}

.faq-layout-heading {
  margin: 0 auto 34px;
  max-width: 860px;
  text-align: center;
}

.faq-tabs {
  display: grid !important;
  width: min(680px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  border: 1px solid rgba(30, 45, 85, 0.1);
  background: rgba(255, 255, 255, 0.56);
  padding: 8px;
  box-shadow: 0 18px 45px rgba(30, 45, 85, 0.08);
}

.faq-tab-button {
  min-height: 62px;
  border: 0;
  background: transparent;
  color: #1e2d55;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.faq-tab-button.active,
.faq-tab-button:hover,
.faq-tab-button:focus-visible {
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(30, 45, 85, 0.18);
  outline: none;
}

.faq-tab-button[data-faq-tab="immigration"].active,
.faq-tab-button[data-faq-tab="immigration"]:hover,
.faq-tab-button[data-faq-tab="immigration"]:focus-visible {
  background: #936c34;
}

.faq-tab-button[data-faq-tab="auto-accident"].active,
.faq-tab-button[data-faq-tab="auto-accident"]:hover,
.faq-tab-button[data-faq-tab="auto-accident"]:focus-visible {
  background: #1e2d55;
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.faq-side-card {
  position: sticky;
  top: 112px;
  border-top: 4px solid #936c34;
  background: #ffffff;
  padding: 34px;
  box-shadow: 0 24px 55px rgba(30, 45, 85, 0.11);
}

.faq-side-kicker {
  display: block;
  color: #936c34;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.faq-side-card h3 {
  margin-top: 14px;
  color: #1e2d55;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.faq-side-card p {
  margin-top: 18px;
  color: #4e4e4e;
  font-size: 15px;
  line-height: 1.78;
}

.faq-side-actions {
  display: flex;
  margin-top: 28px;
  flex-direction: column;
  gap: 10px;
}

.faq-side-actions a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: #936c34;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-side-actions a + a {
  background: #ffffff;
  border: 1px solid rgba(30, 45, 85, 0.18);
  color: #1e2d55;
}

.faq-search-mini {
  border-bottom: 1px solid rgba(30, 45, 85, 0.1);
  padding-bottom: 24px;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-group-title {
  margin: 28px 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c6a561;
  color: #1e2d55;
  font-size: 18px;
  font-weight: 700;
}

.faq-group-title:first-child {
  margin-top: 0;
}

.faq-accordion .faq-item {
  overflow: hidden;
  border: 1px solid rgba(30, 45, 85, 0.1);
  border-left: 4px solid transparent;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(30, 45, 85, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-accordion .faq-item[open] {
  border-left-color: #936c34;
  box-shadow: 0 22px 42px rgba(30, 45, 85, 0.12);
}

.faq-accordion summary {
  display: grid;
  min-height: 76px;
  cursor: pointer;
  list-style: none;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  color: #1e2d55;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-q-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(147, 108, 52, 0.12);
  color: #936c34;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-question {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
}

.faq-toggle {
  display: inline-flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f4fc;
  color: #936c34;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-toggle {
  background: #936c34;
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 26px 26px 60px !important;
  color: #4e4e4e;
  font-size: 15px;
  line-height: 1.82;
}

.faq-answer p {
  margin: 0;
}

@media (max-width: 1023px) {
  .faq-shell {
    grid-template-columns: 1fr;
  }

  .faq-side-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .faq-tabs {
    grid-template-columns: 1fr !important;
  }

  .faq-accordion summary {
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    gap: 12px;
    padding: 18px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 18px 22px !important;
  }
}

/* ── FAQ Topic Nav (side card) ────────────────────── */
.faq-topic-nav-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #936c34;
  margin-bottom: 14px;
}

.faq-topic-group {
  border-top: 1px solid #e8f4fc;
}

.faq-topic-group:last-child {
  border-bottom: 1px solid #e8f4fc;
}

.faq-topic-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #1e2d55;
  list-style: none;
  transition: color 0.15s;
}

.faq-topic-parent::-webkit-details-marker {
  display: none;
}

.faq-topic-parent:hover {
  color: #936c34;
}

.faq-topic-caret {
  display: inline-block;
  font-size: 10px;
  color: #936c34;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-topic-children {
  padding: 0 0 12px 20px;
}

.faq-topic-child {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4e4e4e;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.15s, border-color 0.15s;
}

.faq-topic-child:hover {
  color: #936c34;
  border-left-color: #936c34;
}

.faq-group-flash {
  animation: faqFlash 1.5s ease-out;
}

@keyframes faqFlash {
  0%   { background: rgba(147, 108, 52, 0.18); }
  100% { background: transparent; }
}
/* Header Tailwind fallback: keep desktop menu visible when local .hidden utility wins */
@media (min-width: 1024px) {
  header nav .hidden.items-center.gap-7.text-sm.text-white.lg\:flex,
  header nav .hidden.items-center.gap-3.lg\:flex {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 1023px) {
  header nav .hidden.items-center.gap-7.text-sm.text-white.lg\:flex,
  header nav .hidden.items-center.gap-3.lg\:flex {
    display: none !important;
  }
}
/* Our People archive: keep every layer on a four-column rhythm */
@media (min-width: 1024px) {
  .team-layer .team-layer-grid,
  .team-layer-attorneys .team-layer-grid,
  .team-layer-grid-2 .team-layer-grid,
  .team-layer-grid-4 .team-layer-grid,
  .team-layer-single .team-layer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: none !important;
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .team-layer .team-layer-grid,
  .team-layer-attorneys .team-layer-grid,
  .team-layer-grid-2 .team-layer-grid,
  .team-layer-grid-4 .team-layer-grid,
  .team-layer-single .team-layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: none !important;
  }
}
/* Home about slide: stack right-column service copy */
.about-col-right > .about-service-item {
  display: block !important;
  grid-template-columns: none !important;
}

.about-col-right > .about-service-item h3 {
  margin-bottom: 8px !important;
}

.about-col-right > .about-service-item p {
  display: block !important;
}
/* Our People attorney name line control */
.team-layer-attorneys .team-member-overlay h3 {
  white-space: nowrap !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}

.team-layer-attorneys .attorney-name-main,
.team-layer-attorneys .attorney-name-suffix {
  display: block !important;
  white-space: nowrap !important;
}

.team-layer-attorneys .attorney-name-suffix {
  margin-top: 2px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.82) !important;
}
/* Our People attorney hard line breaks */
.team-layer-attorneys .team-member-overlay,
.team-layer-attorneys .team-member-overlay h3,
.team-layer-attorneys .team-member-overlay p {
  display: block !important;
  width: 100% !important;
}

.team-layer-attorneys .attorney-name-break {
  display: block !important;
  content: "" !important;
}
/* Floating Facebook Messenger button */
.floating-messenger {
  position: fixed !important;
  right: 22px !important;
  top: auto !important;
  bottom: 10px !important;
  z-index: 9998 !important;
  display: inline-flex !important;
  width: 58px !important;
  height: 58px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #0084ff !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(0, 132, 255, 0.36) !important;
  transform: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.floating-messenger:hover,
.floating-messenger:focus-visible {
  background: #006ee6 !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
  box-shadow: 0 20px 42px rgba(0, 132, 255, 0.46) !important;
}

.floating-messenger svg {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
}

@media (max-width: 767px) {
  .floating-messenger {
    right: 16px !important;
    top: auto !important;
    bottom: 10px !important;
    width: 54px !important;
    height: 54px !important;
    transform: none !important;
  }

  .floating-messenger:hover,
  .floating-messenger:focus-visible {
    transform: scale(1.05) !important;
  }
}
/* What We Do archive and mega menu */
.nav-mega {
  position: relative;
  display: flex;
  align-items: center;
}

/* Bridge gap between menu item and dropdown */
.nav-mega::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 119;
}

.nav-mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 24px);
  width: min(1120px, calc(100vw - 56px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  transition-delay: 0.35s;
  z-index: 120;
}

.nav-mega:hover .nav-mega-menu,
.nav-mega:focus-within .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.nav-mega-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 70px rgba(5, 12, 27, 0.28);
  border-top: 4px solid #c6a561;
}

.nav-mega-column {
  min-width: 0;
  padding: 26px 24px 28px;
  border-right: 1px solid rgba(30, 45, 85, 0.1);
}

.nav-mega-column:last-child {
  border-right: 0;
}

.nav-mega-title {
  display: block !important;
  margin-bottom: 16px;
  color: #1e2d55 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal !important;
}

.nav-mega-links {
  display: grid;
  gap: 8px;
}

.nav-mega-links a {
  display: block !important;
  color: #4e4e4e !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.nav-mega-links a:hover,
.nav-mega-title:hover {
  color: #936c34 !important;
}

.whatwedo-intro {
  max-width: 780px;
}

.whatwedo-jump-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 42px;
}

.whatwedo-jump-grid a {
  display: grid;
  align-content: space-between;
  min-height: 138px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(30, 45, 85, 0.12);
  color: #1e2d55;
  box-shadow: 0 14px 34px rgba(30, 45, 85, 0.08);
}

.whatwedo-jump-grid a:hover {
  border-color: #c6a561;
  transform: translateY(-2px);
}

.whatwedo-jump-grid span {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.whatwedo-jump-grid small {
  color: #936c34;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whatwedo-groups {
  display: grid;
  gap: 34px;
  margin-top: 48px;
}

.whatwedo-group {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(30, 45, 85, 0.12);
}

.whatwedo-group-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.whatwedo-group-heading span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: #1e2d55;
  color: #c6a561;
  font-weight: 800;
}

.whatwedo-group-heading h3 {
  margin: 0;
  color: #1e2d55;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.whatwedo-group-heading p {
  margin: 12px 0 0;
  color: #4e4e4e;
  font-size: 14px;
  line-height: 1.75;
}

.whatwedo-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.whatwedo-link-list a {
  position: relative;
  display: block;
  min-height: 46px;
  padding: 13px 14px 13px 28px;
  background: #f9f6ed;
  color: #1e2d55;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.whatwedo-link-list a::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 21px;
  width: 6px;
  height: 6px;
  background: #c6a561;
}

.whatwedo-link-list a:hover {
  background: #1e2d55;
  color: #ffffff;
}

@media (max-width: 1120px) {
  .nav-mega-inner,
  .whatwedo-jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .whatwedo-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .whatwedo-jump-grid,
  .whatwedo-link-list {
    grid-template-columns: 1fr;
  }
}
/* What We Do mega menu position correction */
@media (min-width: 1024px) {
  header nav .nav-mega-menu {
    left: 0 !important;
    right: auto !important;
    width: min(1120px, calc(100vw - 48px)) !important;
    transform: translateX(-32%) translateY(12px) !important;
  }

  header nav .nav-mega:hover .nav-mega-menu,
  header nav .nav-mega:focus-within .nav-mega-menu {
    transform: translateX(-32%) translateY(0) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  header nav .nav-mega-menu {
    transform: translateX(-24%) translateY(12px) !important;
  }

  header nav .nav-mega:hover .nav-mega-menu,
  header nav .nav-mega:focus-within .nav-mega-menu {
    transform: translateX(-24%) translateY(0) !important;
  }
}
/* Our People attorneys: each attorney on a separate row */
@media (min-width: 1024px) {
  .team-layer-attorneys .team-layer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
    max-width: none !important;
    width: 100% !important;
  }

  .team-layer-attorneys .team-member-card {
    grid-column: 1 / span 1 !important;
  }

  .team-layer-attorneys .team-member-card:nth-child(1) {
    grid-row: 1 !important;
  }

  .team-layer-attorneys .team-member-card:nth-child(2) {
    grid-row: 2 !important;
  }
}
/* Our People attorney row introductions */
@media (min-width: 1024px) {
  .team-layer-attorneys .attorney-row-intro {
    grid-column: 2 / span 3 !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 260px !important;
    padding: 34px 40px !important;
    background: #ffffff !important;
    border-left: 4px solid #c6a561 !important;
    box-shadow: 0 18px 44px rgba(30, 45, 85, 0.08) !important;
  }

  .team-layer-attorneys .attorney-row-intro:nth-of-type(2) {
    grid-row: 1 !important;
  }

  .team-layer-attorneys .attorney-row-intro:nth-of-type(4) {
    grid-row: 2 !important;
  }
}

.attorney-row-intro .attorney-row-role {
  margin: 0 0 10px !important;
  color: #936c34 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.attorney-row-intro h3 {
  margin: 0 !important;
  color: #1e2d55 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
}

.attorney-row-intro p:not(.attorney-row-role) {
  margin: 14px 0 0 !important;
  color: #4e4e4e !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.attorney-row-intro a {
  display: inline-flex !important;
  width: max-content !important;
  margin-top: 22px !important;
  color: #1e2d55 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.attorney-row-intro a:hover {
  color: #936c34 !important;
}

@media (max-width: 1023px) {
  .attorney-row-intro {
    padding: 24px !important;
    background: #ffffff !important;
    border-left: 4px solid #c6a561 !important;
  }
}
/* Our People attorney intro explicit row pairing */
@media (min-width: 1024px) {
  .team-layer-attorneys .team-member-card:nth-of-type(1) {
    grid-row: 1 !important;
  }

  .team-layer-attorneys .team-member-card:nth-of-type(2) {
    grid-row: 2 !important;
  }

  .team-layer-attorneys .attorney-row-intro:nth-of-type(1) {
    grid-row: 1 !important;
  }

  .team-layer-attorneys .attorney-row-intro:nth-of-type(2) {
    grid-row: 2 !important;
  }
}
/* Reference-style resource archive pages */
.resource-topline {
  margin-bottom: 42px;
}
.resource-topline p {
  margin: 0 0 8px;
  color: #936c34;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.resource-topline h2 {
  margin: 0;
  color: #1e2d55;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.kb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
}
.kb-blog-card {
  background: #fff;
  min-width: 0;
  box-shadow: 0 16px 38px rgba(30, 45, 85, 0.08);
}
.kb-blog-image,
.kb-newsletter-image {
  display: block;
  overflow: hidden;
  background: #1e2d55;
}
.kb-blog-image img {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.kb-blog-card:hover img,
.kb-newsletter-item:hover img {
  transform: scale(1.04);
}
.kb-blog-copy {
  padding: 22px 24px 26px;
}
.kb-blog-cat,
.kb-newsletter-meta span {
  color: #936c34 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kb-blog-copy h3,
.kb-newsletter-copy h3 {
  margin: 10px 0 0;
  color: #1e2d55;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.kb-blog-copy h3 a,
.kb-newsletter-copy h3 a {
  color: inherit;
}
.kb-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 54px;
}
.kb-pagination a,
.kb-pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 45, 85, 0.14);
  background: #fff;
  color: #1e2d55;
  font-weight: 700;
}
.kb-pagination .current {
  background: #1e2d55;
  color: #fff;
}
.kb-newsletter-list {
  display: grid;
  gap: 30px;
}
.kb-newsletter-item {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  background: #fff;
  box-shadow: 0 18px 42px rgba(30, 45, 85, 0.08);
}
.kb-newsletter-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.kb-newsletter-copy {
  padding: 28px 32px;
}
.kb-newsletter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.kb-newsletter-copy time {
  display: block;
  margin-top: 12px;
  color: #777;
  font-size: 13px;
  font-weight: 700;
}
.kb-newsletter-copy p {
  margin: 14px 0 0;
  color: #4e4e4e;
  font-size: 14px;
  line-height: 1.75;
}
.kb-newsletter-footer {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  color: #936c34;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.kb-priority-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}
.kb-priority-tabs a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 0 28px;
  background: #1e2d55;
  color: #fff !important;
  font-weight: 800;
  text-transform: uppercase;
}
.kb-priority-tabs a:hover {
  background: #936c34;
}
.kb-priority-section {
  margin-top: 54px;
  padding: 34px;
  background: #fff;
  border: 1px solid rgba(30, 45, 85, 0.12);
  box-shadow: 0 18px 42px rgba(30, 45, 85, 0.08);
}
.kb-priority-section h2 {
  margin: 0 0 24px;
  color: #1e2d55;
  font-size: 27px;
  font-weight: 800;
  text-transform: uppercase;
}
.kb-priority-section h3 {
  margin: 28px 0 14px;
  color: #936c34;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}
.kb-table-wrap {
  overflow-x: auto;
}
.kb-priority-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: #fff;
}
.kb-priority-table th,
.kb-priority-table td {
  border: 1px solid rgba(30, 45, 85, 0.16);
  padding: 12px 14px;
  text-align: left;
  color: #1e2d55;
  font-size: 13px;
  line-height: 1.35;
}
.kb-priority-table th {
  background: #1e2d55;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}
.kb-priority-table tr:nth-child(even) td {
  background: #f9f6ed;
}
.kb-priority-readmore {
  display: inline-flex;
  margin-top: 34px;
  color: #1e2d55 !important;
  font-weight: 800;
  text-transform: uppercase;
}
.kb-priority-readmore:hover {
  color: #936c34 !important;
}
@media (max-width: 1023px) {
  .kb-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kb-newsletter-item {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .kb-blog-grid {
    grid-template-columns: 1fr;
  }
  .kb-priority-section {
    padding: 22px;
  }
}
/* Blog page exact reference layout */
.kb-reference-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}
.kb-reference-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 18, 0.2) 0%, rgba(3, 8, 18, 0.72) 100%);
}
.kb-reference-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 74px;
}
.kb-reference-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}
.kb-reference-blog-page {
  background: #ffffff;
  padding: 74px 0 90px;
}
.kb-reference-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
.kb-reference-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 48px;
}
.kb-reference-post-card {
  min-width: 0;
  background: transparent;
}
.kb-reference-post-image {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  background: #1e2d55;
}
.kb-reference-post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.kb-reference-post-card:hover img {
  transform: scale(1.045);
}
.kb-reference-post-body {
  padding-top: 18px;
}
.kb-reference-post-cat {
  display: inline-block;
  margin-bottom: 10px;
  color: #936c34 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kb-reference-post-body h2 {
  margin: 0;
  color: #1e2d55;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.kb-reference-post-body h2 a {
  color: inherit;
}
.kb-reference-post-body h2 a:hover {
  color: #936c34;
}
.kb-reference-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 58px;
  color: #1e2d55;
}
.kb-reference-pagination a,
.kb-reference-pagination span {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #1e2d55;
  font-size: 14px;
  font-weight: 700;
}
.kb-reference-pagination .current {
  color: #936c34;
}
@media (max-width: 1023px) {
  .kb-reference-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .kb-reference-hero {
    min-height: 330px;
  }
  .kb-reference-hero h1 {
    font-size: 42px;
  }
  .kb-reference-blog-grid {
    grid-template-columns: 1fr;
  }
}
/* Top header call link */
.top-header-call {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
}

.top-call-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #212121 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.top-call-link strong {
  color: #936c34 !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

.top-call-link span {
  color: #212121 !important;
  font-weight: 700 !important;
}

.top-call-link:hover span {
  color: #936c34 !important;
}

@media (max-width: 767px) {
  .top-header-call {
    display: none !important;
  }
}
/* Blog masonry block layout */
.kb-reference-blog-page {
  padding-top: 86px !important;
}

.kb-reference-container {
  width: min(980px, calc(100% - 48px)) !important;
}

.kb-reference-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 188px !important;
  gap: 6px !important;
}

.kb-reference-post-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 0 !important;
  background: #1e2d55 !important;
  border-radius: 3px !important;
}

.kb-reference-post-image {
  position: absolute !important;
  inset: 0 !important;
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 100% !important;
}

.kb-reference-post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 18%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.kb-reference-post-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.kb-reference-post-body {
  position: absolute !important;
  left: 24px !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 2 !important;
  padding: 0 !important;
}

.kb-reference-post-cat {
  margin-bottom: 9px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.kb-reference-post-date {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
}

.kb-reference-post-body h2 {
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.32 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55) !important;
}

.kb-reference-post-body h2 a:hover {
  color: #ffffff !important;
}

.kb-reference-post-card.kb-post-1 {
  grid-column: span 2 !important;
  grid-row: span 2 !important;
}

.kb-reference-post-card.kb-post-2,
.kb-reference-post-card.kb-post-3,
.kb-reference-post-card.kb-post-4,
.kb-reference-post-card.kb-post-5,
.kb-reference-post-card.kb-post-10 {
  grid-column: span 1 !important;
  grid-row: span 2 !important;
}

.kb-reference-post-card.kb-post-6 {
  grid-column: span 2 !important;
  grid-row: span 2 !important;
}

.kb-reference-post-card.kb-post-7,
.kb-reference-post-card.kb-post-8,
.kb-reference-post-card.kb-post-9 {
  grid-column: span 2 !important;
  grid-row: span 2 !important;
}

.kb-reference-post-card.kb-post-1 .kb-reference-post-body h2,
.kb-reference-post-card.kb-post-6 .kb-reference-post-body h2,
.kb-reference-post-card.kb-post-7 .kb-reference-post-body h2,
.kb-reference-post-card.kb-post-8 .kb-reference-post-body h2,
.kb-reference-post-card.kb-post-9 .kb-reference-post-body h2 {
  font-size: 21px !important;
}

.kb-reference-pagination {
  margin-top: 62px !important;
}

.kb-reference-pagination a,
.kb-reference-pagination span {
  border: 0 !important;
  background: transparent !important;
}

.kb-reference-pagination .current {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-radius: 3px !important;
}

@media (max-width: 1023px) {
  .kb-reference-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 190px !important;
  }
  .kb-reference-post-card,
  .kb-reference-post-card.kb-post-1,
  .kb-reference-post-card.kb-post-2,
  .kb-reference-post-card.kb-post-3,
  .kb-reference-post-card.kb-post-4,
  .kb-reference-post-card.kb-post-5,
  .kb-reference-post-card.kb-post-6,
  .kb-reference-post-card.kb-post-7,
  .kb-reference-post-card.kb-post-8,
  .kb-reference-post-card.kb-post-9,
  .kb-reference-post-card.kb-post-10 {
    grid-column: span 1 !important;
    grid-row: span 2 !important;
  }
}

@media (max-width: 640px) {
  .kb-reference-blog-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 220px !important;
  }
}
/* Newsletter 3-column image card layout */
.newsletter-card-page {
  background: #f1f4fb;
  padding: 74px 0 90px;
}
.newsletter-card-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
.newsletter-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.newsletter-image-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 44px rgba(30, 45, 85, 0.12);
}
.newsletter-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 37, 0.5) 0%, rgba(8, 20, 37, 0.86) 100%);
  z-index: 0;
}
.newsletter-image-card a {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px 46px 46px;
  color: #ffffff !important;
}
.newsletter-card-tag {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.newsletter-image-card time {
  display: block;
  margin-top: 88px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
}
.newsletter-image-card h2 {
  margin: 16px 0 0;
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.38;
}
.newsletter-image-card p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}
.newsletter-image-card:hover::before {
  background: linear-gradient(180deg, rgba(8, 20, 37, 0.42) 0%, rgba(8, 20, 37, 0.78) 100%);
}
@media (max-width: 1023px) {
  .newsletter-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .newsletter-card-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-image-card,
  .newsletter-image-card a {
    min-height: 460px;
  }
  .newsletter-image-card a {
    padding: 28px;
  }
  .newsletter-image-card time {
    margin-top: 64px;
  }
}
/* Home about service title arrows */
.about-service-title-with-arrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.about-title-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #936c34;
  font-size: 15px;
  line-height: 1;
}
/* Home about slide service spacing sync */
.about-two-col .about-service-item {
  padding-top: 0;
}

.about-two-col .about-service-title-with-arrow {
  margin: 0 0 8px !important;
  line-height: 1.25;
}
/* Our People unified staff image ratio */
.team-layer .team-member-card a {
  display: block;
  width: 100%;
}

.team-layer .team-member-card img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
}

@media (max-width: 767px) {
  .team-layer .team-member-card img {
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
  }
}

/* ── Google Reviews Section ───────────────────────── */
.google-reviews-section {
  position: relative;
}

.google-reviews-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.google-review-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.google-g-svg {
  display: block;
  flex-shrink: 0;
}

.google-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.google-logo-svg {
  display: block;
  height: auto;
}

.google-review-feature {
  background: #ffffff;
  border-radius: 8px;
  padding: 28px 26px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.google-review-feature .testimonial-mark {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 64px;
  line-height: 1;
  color: #c6a561;
  opacity: 0.15;
  font-family: "Georgia", serif;
}

.google-review-feature p {
  font-size: 15px;
  line-height: 26px;
  color: #4e4e4e;
  margin-bottom: 16px;
  flex: 1;
}

.google-review-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.google-review-mini {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px 18px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.google-review-mini p {
  font-size: 13px;
  line-height: 22px;
  color: #4e4e4e;
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .google-reviews-grid {
    grid-template-columns: 1fr;
  }
  .google-review-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Success Stories Cards ────────────────────────── */
.success-stories-section {
  background: #ffffff;
}

.success-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ss-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30, 45, 85, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ss-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(30, 45, 85, 0.15);
}

.ss-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ss-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ss-card:hover .ss-card-image img {
  transform: scale(1.06);
}

.ss-card-body {
  padding: 22px 20px 24px;
}

.ss-card-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #936c34;
}

.ss-card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1e2d55;
}

.ss-card-body h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.ss-card-body h2 a:hover {
  color: #936c34;
}

.ss-card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
  color: #4e4e4e;
}

@media (max-width: 1023px) {
  .success-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .success-stories-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   HEADER – CLEAN (2026-06-07)
   ══════════════════════════════════════════════════════ */

/* ── Top Bar ─────────────────────────────────────── */
.top-bar { background: #fff; border-bottom: 1px solid #eee; }
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 44px;
}
.top-bar-left { display: flex; align-items: center; gap: 12px; }
.top-social-icon { color: #936c34; width: 18px; height: 18px; display: flex; }
.top-social-icon:hover { opacity: 0.7; }
.top-bar-right { display: flex; align-items: center; gap: 18px; }
.top-lang { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.top-lang a { color: #212121; text-decoration: none; }
.top-lang a.top-lang-selected { color: #936c34; font-weight: 700; }
.top-lang span { color: #ccc; }
.top-call-link { display: inline-flex; align-items: center; gap: 8px; color: #212121; font-size: 13px; text-decoration: none; }
.top-call-link strong { color: #936c34; font-weight: 800; }
.top-call-link:hover span { color: #936c34; }

/* ── Main Nav ────────────────────────────────────── */
.main-nav { position: sticky; top: 0; z-index: 100; background: transparent; margin-bottom: -60px; }
.main-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1392px; margin: 0 auto; padding: 0 24px; height: 60px;
}
.main-nav .site-logo img { height: 32px; width: auto; display: block; }

/* Desktop menu */
.desktop-menu { display: none; }
.desktop-ctas { display: none; }

@media (min-width: 1024px) {
  .desktop-menu { display: flex; align-items: center; gap: 24px; }
  .desktop-menu > a {
    color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  }
  .nav-mega > a,
  .nav-dropdown > a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .desktop-ctas { display: flex; align-items: center; gap: 10px; }
  .desktop-ctas a { padding: 10px 20px; font-size: 14px; font-weight: 700; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
  .main-nav .site-logo img { height: 36px; }
  .main-nav { margin-bottom: -72px; }
  .main-nav-inner { height: 72px; }
}

/* ── Hamburger ───────────────────────────────────── */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; border: none; background: none; cursor: pointer; z-index: 110;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: all 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* ── Mobile Nav Panel ────────────────────────────── */
.mobile-nav-panel {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(30, 45, 85, 0.98); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; padding-top: 60px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.mobile-nav-panel.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav-close {
  position: absolute; top: 12px; right: 16px; z-index: 10000;
  width: 36px; height: 36px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
  background: transparent; color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.mobile-nav-inner { padding: 16px 24px 40px; }
.mobile-nav-inner > a {
  display: block; padding: 14px 0; color: #fff; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1); text-decoration: none;
}
.mobile-nav-inner > a:hover { color: #c6a561; }
.mobile-nav-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mobile-nav-ctas a {
  display: flex; align-items: center; justify-content: center; height: 44px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; text-decoration: none; border-radius: 4px;
}
.mobile-nav-ctas .btn-gold { background: #936c34; color: #fff; }
.mobile-nav-ctas .btn-navy { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }

/* ── Accordion (mobile sub-menus) ────────────────── */
.nav-accordion { border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-acc-header {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 0; border: none; background: none;
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.nav-acc-header:hover { color: #c6a561; }
.nav-acc-arrow { font-size: 12px; transition: transform 0.2s; }
.nav-accordion.open .nav-acc-arrow { transform: rotate(180deg); }
.nav-acc-body { display: none; padding: 0 0 12px 16px; }
.nav-accordion.open .nav-acc-body { display: block; }
.nav-acc-body a {
  display: block; padding: 8px 0; color: rgba(255,255,255,0.75); font-size: 14px; text-decoration: none;
}
.nav-acc-body a:hover { color: #c6a561; }

/* ── Mobile: hide desktop-only menubars ──────────── */
@media (max-width: 1023px) {
  .desktop-menu, .desktop-ctas { display: none !important; }
}
@media (min-width: 1024px) {
  .mobile-nav-panel { display: none !important; }
}

/* ── Hero Mobile ─────────────────────────────────── */
body.home .hero-copy-wrap { max-width: 100% !important; }

@media (max-width: 1023px) {
  body.home .hero-swiper-section,
  body.home .hero-swiper,
  body.home .hero-swiper .swiper-wrapper,
  body.home .hero-swiper .swiper-slide {
    height: auto !important;
    min-height: 500px !important;
    max-height: none !important;
    margin-top: 0 !important;
  }
  body.home .hero-slide-bg {
    background-position: left center !important;
  }
  body.home .hero-slide-content {
    min-height: 500px !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    position: relative !important;
  }
  body.home .hero-main-copy {
    width: 100% !important;
    margin: 0 !important;
    padding: 80px 22px 16px 22px !important;
  }
  body.home .hero-copy-wrap {
    align-items: flex-start !important;
    text-align: left !important;
  }
  body.home .hero-kicker {
    font-size: 12px !important;
    text-align: left !important;
  }
  body.home .hero-title {
    font-size: 24px !important;
    max-width: 100% !important;
    text-align: left !important;
    line-height: 1.15 !important;
  }
  body.home .hero-cta {
    height: 36px !important;
    padding: 0 16px !important;
    font-size: 11px !important;
    align-self: flex-start !important;
  }
  body.home .hero-progress-rail {
    position: absolute !important;
    width: 4px !important;
    height: auto !important; top: 0 !important; bottom: 0 !important;
    right: 14px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.26) !important;
  }
  body.home .hero-sublinks {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row !important;
    gap: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
  }
  body.home .hero-sublink {
    min-height: 0 !important;
    padding: 27px 14px 12px !important;
    border-right: 1px solid rgba(255,255,255,0.12) !important;
    border-bottom: none !important;
    background: transparent !important;
    border-radius: 0;
  }
  body.home .hero-sublink:last-child {
    border-right: none !important;
  }
  body.home .hero-sublink span {
    margin-top: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
  body.home .hero-sublink small {
    font-size: 10px !important;
    max-width: 100% !important;
    margin-top: 3px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 480px) {
  body.home .hero-swiper-section,
  body.home .hero-swiper,
  body.home .hero-swiper .swiper-wrapper,
  body.home .hero-swiper .swiper-slide {
    min-height: 480px !important;
  }
  body.home .hero-slide-content {
    min-height: 480px !important;
  }
  body.home .hero-main-copy {
    padding: 72px 14px 12px 14px !important;
  }
  body.home .hero-title {
    font-size: 20px !important;
  }
  body.home .hero-sublink {
    padding: 25px 20px !important;
  }
  body.home .hero-sublink span {
    font-size: 11px !important;
  }
  body.home .hero-sublink small {
    font-size: 9px !important;
  }
}

/* ── About Slider Mobile ─────────────────────────── */
@media (max-width: 1023px) {
  .about-slide .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  .about-slide.py-\\[100px\\],
  .about-slide .py-\\[100px\\] {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .about-slide .section-title {
    font-size: 24px !important;
  }
  .about-slide a[class*="bg-gold"],
  .about-slide a[class*="bg-navy"] {
    display: inline-flex !important;
    height: 48px !important;
    font-size: 13px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .about-two-col {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .about-col-right {
    padding-top: 0 !important;
  }
}

/* ── Practice Areas Mobile ───────────────────────── */
@media (max-width: 1023px) {
  .practice-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }
  .practice-tab {
    flex: 1 1 50% !important;
  }
  .practice-tab a,
  .practice-tab button {
    padding: 14px 16px !important;
    font-size: 14px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  .practice-content .grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .practice-content img {
    height: 240px !important;
    order: -1;
  }
  .practice-content .section-title {
    font-size: 22px !important;
  }
  .sub-tabs:not(.hidden) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap !important;
    overflow-y: hidden !important;
    gap: 0 !important;
  }
  .sub-tabs a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  .practice-link-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Process Steps Mobile ────────────────────────── */
@media (max-width: 767px) {
  section.relative.flex.min-h-\\[600px\\] .grid.gap-8 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 16px !important;
  }
  section.relative.flex.min-h-\\[600px\\] .grid.gap-8 h3 {
    font-size: 12px !important;
    text-align: center !important;
  }
  section.relative.flex.min-h-\\[600px\\] .grid.gap-8 img {
    height: 48px !important;
    width: 48px !important;
  }
}

/* ── Attorneys Section Mobile ────────────────────── */
@media (max-width: 1023px) {
  #people .grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  #people article img {
    height: 360px !important;
  }
}

/* ── Google Reviews Mobile ───────────────────────── */
@media (max-width: 640px) {
  .google-reviews-section {
    padding: 56px 0 !important;
  }
  .google-reviews-section .text-center p {
    font-size: 14px !important;
  }
  .google-reviews-section h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  .google-review-feature {
    padding: 22px 18px 20px !important;
  }
  .google-review-feature p {
    font-size: 14px !important;
    line-height: 22px !important;
  }
  .google-review-feature .testimonial-mark {
    font-size: 48px !important;
  }
  .google-review-mini {
    padding: 16px 14px 14px !important;
  }
  .google-reviews-section .text-center a {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── Resources Section Mobile ────────────────────── */
@media (max-width: 1023px) {
  #resources {
    grid-template-columns: 1fr !important;
  }
  #resources .topic-carousel {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 32px;
    overflow-x: visible;
  }
  #resources > div {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  #resources h2 {
    font-size: 22px !important;
  }
  #resources .mt-10 {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
  }
  #resources .mt-10 a {
    margin: 0 auto !important;
  }
}

/* ── Footer Mobile ───────────────────────────────── */
@media (max-width: 767px) {
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  footer .grid h3 {
    font-size: 16px !important;
  }
}

/* ── Section Title Mobile ────────────────────────── */
@media (max-width: 640px) {
  .section-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }
  .body-copy {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
}

/* ── Appointment Modal Mobile ────────────────────── */
@media (max-width: 767px) {
  #appointment-modal .flex-col.md\\:flex-row {
    flex-direction: column !important;
  }
  #appointment-modal .flex-\\[0_0_50\\%\\] {
    flex: 0 0 auto !important;
  }
  #appointment-modal .new-booking {
    max-width: 100% !important;
    margin: 8px !important;
  }
  #appointment-modal .border-l {
    border-left: none !important;
    border-top: 1px solid #e5e1d8 !important;
  }
  #appointment-modal .modal-close {
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
  #appointment-modal h2 {
    font-size: 20px !important;
  }
  /* Footer stacks on mobile */
  #appointment-modal .flex.items-center.justify-center.gap-5 {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* ── Floating Messenger Mobile ───────────────────── */
@media (max-width: 640px) {
  .floating-messenger {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

/* ── Resources Section Desktop Grid ────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.resources-card {
  display: flex;
  flex-direction: column;
}

/* Link wrapper around resource cards */
.resources-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.resources-card-link:hover .resources-card h3 {
  color: #b4975a;
}
.resources-card-img {
  height: 140px;
  width: 100%;
  object-fit: cover;
}

/* Hide old READ MORE links inside resource cards */


@media (max-width: 1023px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

