/* ==========================================================
   SUPREME COURT (Search Case Law) — Lawyer Directory Platform
   (Header & Footer excluded as requested)
   ========================================================== */
:root {
  --brand: rgba(11, 94, 215, 1);
  --brand-hover: #0A53BE;
  --hero-from: #020F2B;
  --hero-to: #0B5ED7;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BEDBFF;
  --ink: #111111;
  --gray-950: #030712;
  --gray-900: #101828;
  --gray-800: #1E2939;
  --gray-700: #364153;
  --gray-600: #4A5565;
  --gray-500: #6A7282;
  --gray-400: #99A1AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;

  --container: 1400px;
  --gutter: 24px;
  --radius-card: 14px;
  --radius-input: 10px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-float: 0 10px 30px rgba(2, 15, 43, .18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: 'outfit', sans-serif;
}

body {
  font-family: 'outfit', sans-serif;
  background: #fff;
  color: var(--gray-900);
  line-height: 1.5
}

img,
svg {
  display: block;
  max-width: 100%
}

button {
  font: inherit;
  cursor: pointer;
  border: none
}

input,
select {
  font: inherit;
  color: var(--gray-900);
  width: 100%
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  /* padding-inline: var(--gutter) */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-input);
  height: 46px;
  padding: 0 20px;
  white-space: nowrap;
  transition: background .2s, transform .1s
}

.btn:hover {
  background: var(--brand-hover)
}

.btn:active {
  transform: translateY(1px)
}

.btn:focus-visible {
  outline: 3px solid rgba(11, 94, 215, .35);
  outline-offset: 2px
}

.btn svg {
  width: 16px;
  height: 16px
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(105deg, var(--hero-from) 0%, #06224f 55%, var(--hero-to) 100%);
  padding: 26px 0 44px
}

.hero .container {
  position: relative;
  z-index: 1
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 30px;
  flex-wrap: wrap
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .82);
  transition: color .2s
}

.breadcrumb a:hover {
  color: #fff
}

.breadcrumb .crumb-sep svg {
  width: 13px;
  height: 13px;
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

.breadcrumb .current {
  color: #fff;
  font-weight: 500
}

.hero-badge {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px
}

.hero-badge svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round
}

.hero h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px
}

.hero .hero-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .8)
}

/* ===================== MAIN LAYOUT ===================== */
.main {
  padding: 50px 0 20px;
  max-width: 1240px;
  margin: 0 auto
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start
}

.lede h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.01em;
  margin-bottom: 10px
}

.lede p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 760px
}

/* Tabs */
.tabs {
  display: inline-flex;
  background: rgba(11, 94, 215, 1);
  border-radius: 10px;
  padding: 5px;
  gap: 4px;
  margin-bottom: 22px
}

.tab {
  background: transparent;
  color: white;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  padding: 9px 18px;
  transition: background .2s, color .2s
}

.tab.active {
  background: white;
  color: rgba(11, 94, 215, 1);
}

.tab:not(.active):hover {
  background: var(--blue-100)
}

/* Search filter form */
.filter-form {
  /* max-width: 660px; */
  padding:12px 12px;
  border-radius: 10px;;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.fg {
  margin-bottom: 18px
}

.fg label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px
}

.fg input {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-input);
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s
}

.fg input::placeholder {
  color: var(--gray-400)
}

.fg input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
  background: #fff
}

.fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.date-wrap {
  position: relative
}

.date-wrap .cal {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--gray-400);
  fill: none;
  stroke-width: 1.8;
  pointer-events: none
}

.date-wrap input {
  padding-right: 40px
}

/* Sidebar — About card */
.aside {
  display: flex;
  flex-direction: column;
  gap: 24px
}

.about-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding:20px;
}

.about-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
  border-radius:20px;
}

.about-card .about-body {
  padding: 18px 0px 20px;
}

.about-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px
}

.about-card p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 16px
}

.btn-block {
  width: 100%
}

/* Sidebar — Explore Other Courts */
.other-courts {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 8px 14px
}

.other-courts h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 12px 10px
}

.other-courts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(74, 85, 101, 1);
  font-weight: 500;
  transition: background .2s
}

.other-courts a:hover {
  background: var(--blue-50)
}

.other-courts a svg {
  width: 13px;
  height: 13px;
  stroke: var(--gray-400);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ===================== RECENT DECISIONS ===================== */
.recent {
  padding: 36px 0 10px
}

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px
}

.recent-head h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.01em
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand)
}

.view-all svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s
}

.view-all:hover svg {
  transform: translateX(3px)
}

.decisions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card)
}

.decisions-table thead th {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 14px 22px
}

.decisions-table tbody td {
  padding: 15px 22px;
  font-size: 13px;
  border-top: 1px solid var(--gray-100);
    background: var(--blue-50);
}



.decisions-table tbody tr:hover td {
  background: var(--blue-100)
}

.decisions-table td.desc a {
  color: var(--brand);
  font-weight: 500
}

.decisions-table td.desc a:hover {
  text-decoration: underline
}

.decisions-table td.date {
  color: var(--gray-600)
}

.decisions-table td.docket {
  color: var(--brand);
  font-weight: 500
}

.col-date {
  width: 170px
}

.col-docket {
  width: 140px
}

/* Browse cards (dark) */
.browse-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px
}
.browse-card-1{
background: linear-gradient(to bottom,rgba(2, 15, 43, 1),rgba(13, 70, 162, 1));
}
.browse-card-2{
background: rgba(16, 24, 40, 1);
}
.browse-card {
  
  color: #fff;
  border-radius: var(--radius-card);
  padding: 24px 24px 26px
}

.browse-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px
}

.browse-card p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.7;
  margin-bottom: 20px
}

.browse-card .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  padding: 11px 18px;
  transition: background .2s, transform .1s
}

.browse-card .btn-white:hover {
  background: var(--gray-100)
}

.browse-card .btn-white:active {
  transform: translateY(1px)
}

.browse-card .btn-white svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ===================== EXPLORE ===================== */
.explore {
  padding: 54px 0 20px
}

.explore>.container>h2 {
  font-size: 25px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.01em;
  margin-bottom: 6px
}

.explore .explore-sub {
  font-size: 16px;
  color: rgba(106, 114, 130, 1);
  margin-bottom: 26px
}

.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.explore-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card)
}

.explore-card .ec-head {
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px
}

.explore-card .ec-body {
  background: var(--blue-50)
}

.explore-card .ec-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--gray-700);
  transition: background .2s, color .2s
}

.explore-card .ec-body a+a {
  border-top: 1px solid rgba(11, 94, 215, .08)
}

.explore-card .ec-body a:hover {
  background: #fff;
  color: var(--brand)
}

.explore-card .ec-body a svg {
  width: 13px;
  height: 13px;
  stroke: var(--gray-400);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ===================== MISSION ===================== */
.mission {
  padding: 70px 0 60px
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center
}

.mission-media {
  position: relative
}

.mission-media .photo {
  border-radius: 18px;
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 18px 40px rgba(2, 15, 43, .14)
}

.float-card {
  position: absolute;
  left: -22px;
  bottom: -30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  padding: 16px 18px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 300px
}

.float-card .ic {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center
}

.float-card .ic svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.float-card .t {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px
}

.float-card .d {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.55
}

.mission-copy h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--gray-900)
}

.mission-copy p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px
}

.check-list {
  list-style: none;
  margin-top: 22px
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-800)
}

.check-list li+li {
  margin-top: 12px
}

.check-list .chk {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center
}

.check-list .chk svg {
  width: 11px;
  height: 11px;
  stroke: var(--brand);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ===================== CTA ===================== */
.cta-section {
  padding: 20px 0 90px
}

.cta-card {
  background: linear-gradient(90deg, var(--hero-from) 0%, var(--hero-to) 100%);
  border-radius: 18px;
  padding: 38px 40px 34px;
  color: #fff
}

.cta-card h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 6px
}

.cta-card .cta-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 22px
}

.cta-form {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 18px;
  align-items: end
}

.cta-form .field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px
}

.select-wrap {
  position: relative
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-input);
  height: 46px;
  padding: 0 40px 0 14px;
  font-size: 14px;
  color: var(--gray-500);
  outline: none;
  transition: border-color .2s, box-shadow .2s
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--gray-400);
  border-bottom: 1.8px solid var(--gray-400);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none
}

.cta-form input[type=text] {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-input);
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s
}

.cta-form input::placeholder {
  color: var(--gray-400)
}

.cta-form select:focus,
.cta-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
  background: #fff
}

/* ===================== RESPONSIVE ===================== */
@media (max-width:1080px) {
  .main-grid {
    grid-template-columns: 1fr 320px;
    gap: 30px
  }
}

@media (max-width:920px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .aside {
    flex-direction: row;
    flex-wrap: wrap
  }

  .about-card,
  .other-courts {
    flex: 1 1 300px
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 60px
  }

  .float-card {
    left: 14px;
    bottom: -26px
  }

  .cta-form {
    grid-template-columns: 1fr 1fr
  }

  .cta-form .btn {
    grid-column: 1 / -1;
    width: 100%
  }
}

@media (max-width:760px) {
  .hero {
    padding: 22px 0 38px
  }

  .hero h1 {
    font-size: 25px
  }

  .lede h2 {
    font-size: 20px
  }

  .browse-row,
  .explore-grid {
    grid-template-columns: 1fr
  }

  .recent {
    overflow-x: auto
  }

  .decisions-table {
    min-width: 560px
  }

  .recent-head h2 {
    font-size: 19px
  }

  .mission {
    padding: 54px 0 50px
  }

  .mission-copy h2 {
    font-size: 23px
  }

  .cta-card {
    padding: 28px 22px 26px
  }

  .cta-card h2 {
    font-size: 20px
  }
}

@media (max-width:560px) {
  :root {
    --gutter: 16px
  }

  .fg-row {
    grid-template-columns: 1fr
  }

  .tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr)
  }

  .tab {
    padding: 9px 8px;
    text-align: center
  }

  .cta-form {
    grid-template-columns: 1fr;
    padding: 16px
  }

  .aside {
    flex-direction: column
  }

  .float-card {
    position: static;
    margin-top: 16px;
    max-width: none
  }

  .mission-grid {
    gap: 30px
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    transition: none !important
  }

  html {
    scroll-behavior: auto
  }
}