/* ============================================================
   NMBJC — New Mexico Black Judicial Council
   styles.css — Global Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS VARIABLES & RESET
   ------------------------------------------------------------ */
:root {
  --primary:    #1d9c95;
  --secondary:  #704fa1;
  --accent1:    #ebc718;
  --accent2:    #ad1f25;
  --footer-bg:  #2a2a2a;
  --page-bg:    #f6f6f6;
  --dark:       #1a1a1a;
}

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

body {
  background: var(--page-bg);
  font-family: 'Source Serif 4', Georgia, serif;
  color: #333;
}

/* Visible keyboard focus indicator, applied site-wide. Individual
   components (e.g. .judge-card) may still define a more specific
   focus-visible style; this is the fallback for everything else. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent1);
  outline-offset: 2px;
}

/* Skip-to-content link: visually hidden until keyboard-focused */
.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background: var(--dark);
  color: #fff;
  padding: .75rem 1.5rem;
  z-index: 3000;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent1);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   2. NAVBAR
   ------------------------------------------------------------ */
.site-navbar {
  background: #fff;
  border-bottom: 3px solid var(--accent1);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
  transition: background-color .3s ease;
}

.site-navbar.scrolled {
  background: rgba(255, 255, 255, .8);
}

.navbar-brand img {
  height: 150px;
  transition: height .3s ease;
}

.navbar-brand.tiny img {
  height: 75px;
}

.navbar-toggler {
  border: 2px solid var(--primary);
  border-radius: 4px;
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: none;
}

.navbar-toggler .fa-bars {
  color: var(--primary);
  font-size: 1.2rem;
}

.navbar-brand.tiny {
    color: #fff;
}
/* Offcanvas */
.offcanvas {
  max-width: 280px;
}

.offcanvas-header {
  background: var(--dark);
}

.offcanvas-body {
  background: #1a1a1a;
}

.offcanvas-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
}

.offcanvas-body .nav-link {
  color: #ccc !important;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .6rem 1rem;
  border-bottom: 1px solid #2e2e2e;
  transition: color .2s, padding-left .2s;
}

.offcanvas-body .nav-link:hover {
  color: var(--accent1) !important;
  padding-left: 1.5rem;
}

.offcanvas-body .dropdown-menu {
  background: #222;
  border: 1px solid #333;
}

.offcanvas-body .dropdown-item {
  color: #bbb;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.offcanvas-body .dropdown-item:hover {
  background: #333;
  color: var(--accent1);
}

.btn-close-white {
  filter: invert(1);
}

/* ------------------------------------------------------------
   3. SHARED SECTION TYPOGRAPHY
   ------------------------------------------------------------ */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

/* ------------------------------------------------------------
   4. PAGE HEADER (inner pages)
   ------------------------------------------------------------ */
.page-header {
  position: relative;
  padding: 5rem 0 4rem;
  background: url('../images/header-background-image.jpg') center / cover no-repeat;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, .78);
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: .8rem;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--accent1);
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.page-title-bar {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  margin-top: 1.2rem;
}

/* ------------------------------------------------------------
   5. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: var(--footer-bg);
  padding: 4rem 0 2rem;
  color: #aaa;
}

.footer-logo img {
  height: 225px;
  opacity: .9;
}

.footer-tagline {
  color: rgba(255, 255, 255, .55);
  font-family: 'Source Serif 4', serif;
  font-size: .9rem;
  font-style: italic;
  margin-top: .5rem;
  line-height: 1.5;
}

.footer-nav-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 1.2rem;
}

.footer-nav a {
  display: block;
  color: #999;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .83rem;
  margin-bottom: .5rem;
  transition: color .2s;
}

.footer-nav a:hover {
  color: var(--accent1);
}

.footer-contact a {
  color: #999;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  transition: color .2s;
}

.footer-contact a:hover {
  color: var(--accent1);
}

.footer-contact p {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  margin-bottom: .5rem;
}

.footer-divider {
  border-color: #3a3a3a;
  margin: 2rem 0 1rem;
}

.footer-bottom {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  color: #999;
  text-align: center;
}

/* ------------------------------------------------------------
   6. HOME — HERO
   ------------------------------------------------------------ */
.hero-section {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 40%, #1d3a39 100%);
  min-height: 85vh;
  padding: 5rem 0 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/nmbjc-group-photo3.jpg') center / cover no-repeat;
  opacity: .18;
}

.hero-section::after {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 400px;
  height: 400px;
  background: var(--primary);
  border-radius: 50%;
  opacity: .07;
}

.hero-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent1), var(--primary), var(--secondary));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  margin: 1.4rem 0;
}

.hero-sub {
  color: rgba(255, 255, 255, .72);
  font-size: 1.1rem;
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 2.2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: .5rem;
  transition: background .2s, transform .15s;
}

.hero-btn:hover {
  background: #168a84;
  color: #fff;
  transform: translateY(-2px);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .4);
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 2.2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s, color .2s;
}

.hero-btn-outline:hover {
  border-color: var(--accent1);
  color: var(--accent1);
}

.hero-year-badge {
  position: absolute;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  opacity: .12;
  z-index: 1;
}

.hero-year-badge span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

/* ------------------------------------------------------------
   7. HOME — MISSION
   ------------------------------------------------------------ */
.mission-section {
  background: #fff;
  padding: 6rem 0;
  border-top: 4px solid var(--accent1);
}

.mission-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: #444;
  line-height: 1.75;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 3rem;
}

.mission-quote::before {
  content: '\201C';
  position: absolute;
  top: -.3rem;
  left: .5rem;
  font-size: 6rem;
  color: var(--accent1);
  opacity: .35;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.mission-quote::after {
  content: '\201D';
  position: absolute;
  bottom: -2.2rem;
  right: .5rem;
  font-size: 6rem;
  color: var(--accent1);
  opacity: .35;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.mission-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #888;
}

/* ------------------------------------------------------------
   8. HOME — GALLERY / MASONRY
   ------------------------------------------------------------ */
.gallery-section {
  background: var(--page-bg);
  padding: 6rem 0;
}

.masonry-grid {
  columns: 4 220px;
  column-gap: 14px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform .45s ease;
  filter: saturate(.9);
}

.masonry-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.1);
}

.masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 156, 149, .7), transparent);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.masonry-item:hover .overlay {
  opacity: 1;
}

.overlay-text {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gallery-placeholder {
  background: linear-gradient(135deg, #c8c8c8, #e0e0e0);
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .7rem;
  font-family: 'Montserrat', sans-serif;
}

.placeholder-courtroom {
  background: linear-gradient(135deg, #2a2a2a, #444);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .25);
  font-size: .8rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .1em;
}

/* ------------------------------------------------------------
   9. HOME — ABOUT PREVIEW
   ------------------------------------------------------------ */
.about-section {
  background: #fff;
  padding: 6rem 0;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80%;
  height: 80%;
  border: 4px solid var(--accent1);
  z-index: 0;
  border-radius: 2px;
}

.about-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, .15);
}

.about-text-wrap {
  padding: 1.5rem 0 1.5rem 2rem;
}

.about-text-wrap p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 1rem;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}

.btn-primary-custom:hover {
  background: #168a84;
  color: #fff;
}

/* ------------------------------------------------------------
   10. HOME — HISTORY PREVIEW
   ------------------------------------------------------------ */
.history-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.history-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .06;
}

.history-section .section-label {
  color: var(--accent1);
}

.history-section .section-title {
  color: #fff;
}

.history-section p {
  color: rgba(255, 255, 255, .7);
  line-height: 1.85;
  font-size: 1.05rem;
}

.history-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  border: 3px solid rgba(235, 199, 24, .3);
}

.timeline-dot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent1);
  flex-shrink: 0;
}

.timeline-dot span {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  color: rgba(255, 255, 255, .65);
}

/* ------------------------------------------------------------
   11. HOME — MEMBERSHIP PREVIEW CARDS
   ------------------------------------------------------------ */
.membership-section {
  background: var(--page-bg);
  padding: 6rem 0;
}

.membership-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}

.membership-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
}

.card-img-top-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-img-top-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.membership-card:hover .card-img-top-wrap img {
  transform: scale(1.06);
}

.card-color-bar {
  height: 4px;
}

.card-body-inner {
  padding: 1.6rem;
}

.card-body-inner h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .8rem;
}

.card-body-inner p {
  font-size: .92rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 1.4rem;
}

.btn-card {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .65rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all .2s;
}

.btn-card:hover {
  background: var(--primary);
  color: #fff;
}

/* ------------------------------------------------------------
   12. ABOUT PAGE
   ------------------------------------------------------------ */
.intro-section {
  background: #fff;
  padding: 5rem 0;
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
  max-width: 800px;
  margin: 0 auto 1.2rem;
}

.seal-section {
  width: 100%;
  overflow: hidden;
  height: 420px;
  position: relative;
}

.seal-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seal-section .seal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 10, 20, .6), rgba(10, 10, 20, .1));
}

.seal-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 2rem 3rem;
  z-index: 2;
}

.seal-caption p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .85);
}

.values-section {
  background: var(--page-bg);
  padding: 5rem 0;
}

.values-section p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
}

.value-card {
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  border-top: 4px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  margin-bottom: 1.5rem;
}

.value-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}

.value-card p {
  font-size: .92rem;
  color: #666;
  margin: 0;
  line-height: 1.7;
}

.value-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}

.value-icon i {
  color: #fff;
  font-size: .95rem;
}

/* ------------------------------------------------------------
   13. HISTORY PAGE
   ------------------------------------------------------------ */
.history-intro {
  background: #fff;
  padding: 5rem 0;
}

.history-intro p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
  max-width: 820px;
  margin: 0 auto 1.2rem;
}

.history-main {
  background: var(--page-bg);
  padding: 5rem 0;
}

.history-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 1.4rem;
}

.history-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2rem 0 .8rem;
}

.judges-sidebar {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  overflow: hidden;
}

.judges-sidebar-header {
  background: linear-gradient(135deg, var(--dark), #333);
  padding: 1.5rem 1.8rem;
}

.judges-sidebar-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.judges-sidebar-header p {
  color: rgba(255, 255, 255, .55);
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: .4rem 0 0;
}

.judges-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.judges-list li {
  border-bottom: 1px solid #f0f0f0;
}

.judges-list li:last-child {
  border-bottom: none;
}

.judges-list a {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.6rem;
  text-decoration: none;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}

.judges-list a:hover {
  background: var(--page-bg);
  color: var(--primary);
}

.judge-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.judge-avatar i {
  color: #fff;
  font-size: .85rem;
}

.judge-name-wrap {
  flex: 1;
}

.judge-title-small {
  display: block;
  font-size: .7rem;
  color: #999;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ------------------------------------------------------------
   14. JUDGE BIO PAGE
   ------------------------------------------------------------ */
.bio-section {
  padding: 5rem 0;
  background: #fff;
}

.profile-image-wrap {
  position: relative;
}

.profile-image-wrap::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 90%;
  height: 90%;
  border: 3px solid var(--accent1);
  z-index: 0;
  border-radius: 2px;
}

.profile-image-wrap img,
.profile-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}

.profile-image-placeholder {
  background: linear-gradient(135deg, #2a2a2a, #444);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .8rem;
}

.profile-image-placeholder i {
  font-size: 4rem;
  color: rgba(255, 255, 255, .25);
}

.profile-image-placeholder span {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.judge-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: .4rem;
}

.judge-court {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}

.bio-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  margin-bottom: 1.8rem;
}

.bio-content p {
  font-size: 1.05rem;
  line-height: 1.88;
  color: #555;
  margin-bottom: 1.2rem;
}

.bio-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2rem 0 .7rem;
}

.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .6rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  color: #555;
}

.credentials-list li:last-child {
  border-bottom: none;
}

.credentials-list i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.back-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  transition: gap .2s;
}

.back-link:hover {
  color: var(--secondary);
  gap: .8rem;
}

/* ------------------------------------------------------------
   15. MEMBERSHIP PAGE
   ------------------------------------------------------------ */
.membership-intro {
  background: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}

.membership-intro p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
  max-width: 720px;
  margin: 0 auto;
}

.cards-section {
  background: var(--page-bg);
  padding: 5rem 0;
}

.mem-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0, 0, 0, .09);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .15);
}

.mem-card-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mem-card-hero i {
  font-size: 4.5rem;
  color: rgba(255, 255, 255, .35);
  position: relative;
  z-index: 1;
}

.mem-card-body {
  padding: 2rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mem-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
}

.mem-card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mem-card-body p {
  font-size: .95rem;
  line-height: 1.72;
  color: #666;
  margin-bottom: 1.5rem;
  flex: 1;
}

.mem-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
}

.mem-features li {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  color: #555;
  padding: .4rem 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.mem-features li:last-child {
  border-bottom: none;
}

.mem-features i {
  color: var(--primary);
  font-size: .75rem;
}

.btn-mem {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .8rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all .2s;
}

.btn-mem-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}

.btn-mem-primary:hover {
  background: #168a84;
  border-color: #168a84;
  color: #fff;
}

.btn-mem-secondary {
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--secondary);
}

.btn-mem-secondary:hover {
  background: #5e3f91;
  border-color: #5e3f91;
  color: #fff;
}

.btn-mem-accent {
  background: var(--accent2);
  color: #fff;
  border: 2px solid var(--accent2);
}

.btn-mem-accent:hover {
  background: #931920;
  border-color: #931920;
  color: #fff;
}

.benefits-strip {
  background: linear-gradient(135deg, var(--dark), #2a2a3e);
  padding: 4rem 0;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(29, 156, 149, .2);
  border: 2px solid rgba(29, 156, 149, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.benefit-icon i {
  color: var(--primary);
  font-size: 1.1rem;
}

.benefit-item h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .4rem;
}

.benefit-item p {
  font-size: .83rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------
   16. MEDIA PAGE
   ------------------------------------------------------------ */
.media-section {
  background: #fff;
  padding: 5rem 0;
}

.featured-post {
  background: var(--dark);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  min-height: 400px;
  margin-bottom: 3rem;
}

.featured-img {
  flex: 0 0 55%;
  background: linear-gradient(135deg, #1d9c95, #0e6b67);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
}

.featured-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  height: 100%;
}

.featured-img-placeholder i {
  font-size: 3rem;
  color: rgba(255, 255, 255, .25);
}

.featured-content {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-category {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: .7rem;
}

.featured-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.featured-content p {
  color: rgba(255, 255, 255, .6);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.post-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.post-meta i {
  color: var(--primary);
}

.read-more {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem 0;
  transition: gap .2s;
}

.read-more:hover {
  color: var(--accent1);
  gap: .8rem;
}

.blog-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0, 0, 0, .07);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-img-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img-placeholder i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, .25);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-body h3,
.blog-card-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin: .6rem 0 .7rem;
}

.blog-card-body p {
  font-size: .88rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 1rem;
}

.blog-card-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .6rem;
}

.blog-card-meta i {
  color: var(--primary);
}

.sidebar-widget {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 18px rgba(0, 0, 0, .07);
  overflow: hidden;
  margin-bottom: 2rem;
}

.sidebar-widget-header {
  background: var(--dark);
  padding: 1.2rem 1.5rem;
}

.sidebar-widget-header h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sidebar-widget-body {
  padding: 1.5rem;
}

.sidebar-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  color: #555;
  text-decoration: none;
  transition: color .2s;
}

.sidebar-category:hover {
  color: var(--primary);
}

.sidebar-category span {
  background: var(--page-bg);
  color: #999;
  font-size: .7rem;
  padding: .1rem .5rem;
  border-radius: 10px;
}

.recent-item {
  display: flex;
  gap: .9rem;
  padding: .7rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-item-img {
  width: 60px;
  height: 60px;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
}

.recent-item-img div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-item-text a {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: .3rem;
}

.recent-item-text a:hover {
  color: var(--primary);
}

.recent-item-date {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  color: #767676;
}

/* ------------------------------------------------------------
   17. CONTACT PAGE
   ------------------------------------------------------------ */
.contact-section {
  background: #fff;
  padding: 5rem 0;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), #168a84);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: #fff;
  font-size: 1.1rem;
}

.contact-item-text h6 {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #767676;
  margin-bottom: .2rem;
}

.contact-item-text a,
.contact-item-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  color: var(--dark);
  text-decoration: none;
  margin: 0;
}

.contact-item-text a:hover {
  color: var(--primary);
}

.social-row {
  display: flex;
  gap: .8rem;
  margin-top: 2rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #888;
  font-size: 1rem;
  transition: all .2s;
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
}

.contact-form-wrap {
  background: var(--page-bg);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: .4rem;
}

.form-control,
.form-select {
  border: 1.5px solid #e0e0e0;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  padding: .7rem 1rem;
  color: #333;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 156, 149, .4);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .9rem 2.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.btn-submit:hover {
  background: #168a84;
  transform: translateY(-1px);
}

#form-success {
  display: none;
  background: #e8f8f7;
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 1.2rem 1.5rem;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  margin-top: 1rem;
}

#form-error {
  display: none;
  background: #fdecec;
  border: 1px solid var(--accent2);
  border-radius: 4px;
  padding: 1rem 1.3rem;
  color: #7a1218;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: var(--accent2);
}

/* ------------------------------------------------------------
   18. BLOG ARTICLE PAGE
   ------------------------------------------------------------ */
.article-section {
  background: #fff;
  padding: 4rem 0 5rem;
}

/* -- 18.1 Feature Image ---------------------------------------- */
.article-featured-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

/* -- 18.2 Header (category, title, meta) ------------------------ */
.article-header {
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin: .8rem 0 1.2rem;
}

.article-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #eee;
}

.article-meta i {
  color: var(--primary);
  margin-right: .4rem;
}

/* -- 18.3 Body Copy ---------------------------------------------- */
.article-body {
  max-width: 820px;
  margin: 0 auto;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.6rem;
}

.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2rem 0 1.2rem;
}

/* -- 18.4 Two-Image Row ------------------------------------------- */
.article-image-row {
  display: flex;
  gap: 1.5rem;
  margin: 2.2rem 0;
}

.article-image-row figure {
  flex: 1 1 50%;
  margin: 0;
}

.article-image-row img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.article-image-row figcaption {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  color: #999;
  margin-top: .6rem;
  text-align: center;
}

/* -- 18.5 Pull Quote ------------------------------------------------ */
.article-pullquote {
  border-left: 4px solid var(--primary);
  padding: .4rem 0 .4rem 1.6rem;
  margin: 2.2rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--dark);
  line-height: 1.5;
}

/* -- 18.6 Tags -------------------------------------------------------- */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.5rem;
}

.article-tags a {
  background: var(--page-bg);
  color: #666;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .5rem 1rem;
  border-radius: 30px;
  transition: background .2s, color .2s;
}

.article-tags a:hover {
  background: var(--primary);
  color: #fff;
}

/* -- 18.7 Author / Share Bar ------------------------------------------- */
.article-footer-bar {
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #168a84);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.article-author-name {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
}

.article-author-role {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  color: #999;
}

.article-share {
  display: flex;
  gap: .7rem;
}

.article-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s, color .2s;
}

.article-share a:hover {
  background: var(--primary);
  color: #fff;
}



/* -- 19.1 Intro / Lead Copy ---------------------------------- */
.judges-intro {
  background: #fff;
  padding: 5rem 0 3rem;
  text-align: center;
}

.judges-intro p.lead-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
}

/* -- 19.2 Grid Section Wrapper -------------------------------- */
.judges-grid-section {
  background: var(--page-bg);
  padding: 1rem 0 5.5rem;
}

/* -- 19.2a Filter Bar (filter cards by court type) ------------- */
.judges-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-bottom: 3rem;
}

.judges-filter-btn {
  background: #fff;
  color: #555;
  border: 1.5px solid #e0e0e0;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .6rem 1.3rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.judges-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.judges-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.judges-filter-empty {
  display: none;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  color: #767676;
  padding: 2rem 0 3rem;
}

/* -- 19.3 Judge Card (base) ----------------------------------- */
.judge-card {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #444);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}

.judge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.judge-card:focus-visible {
  outline: 3px solid var(--accent1);
  outline-offset: 3px;
}

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

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

/* -- 19.4 Name / Title Overlay --------------------------------- */
.judge-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 1.1rem;
  background: linear-gradient(180deg, rgba(10,10,15,0) 38%, rgba(10,10,15,.55) 70%, rgba(8,8,12,.92) 100%);
}

.judge-card-overlay::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent1), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.judge-card:hover .judge-card-overlay::before {
  transform: scaleX(1);
}

.judge-card-info {
  position: relative;
  z-index: 2;
}

.judge-card-name {
  margin: 0 0 .25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.judge-card-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent1);
}

/* -- 19.5 Gavel Badge ------------------------------------------- */
.judge-card-badge {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(3px);
}

.judge-card-badge i {
  color: #fff;
  font-size: .8rem;
}

/* -- 19.6 Placeholder Cards (unfilled profile slots) ------------ */
/* Used for open roster slots before a judge's photo/bio is ready.
   Renders as a plain, non-link <div class="judge-card judge-card-placeholder">
   with a generic court-themed image, dimmed and italicized to read
   clearly as "not yet assigned" within the grid. */
.judge-card-placeholder {
  cursor: default;
}

.judge-card-placeholder img {
  filter: grayscale(45%) brightness(.8);
}

.judge-card-placeholder:hover img {
  filter: grayscale(30%) brightness(.85);
}

.judge-card-placeholder .judge-card-name {
  color: rgba(255, 255, 255, .85);
  font-style: italic;
}

.judge-card-placeholder .judge-card-title {
  color: rgba(255, 255, 255, .55);
}

/* ------------------------------------------------------------
   21. MEDIA PHOTO GALLERY & LIGHTBOX
   ------------------------------------------------------------ */
.photo-gallery-section {
  background: var(--page-bg);
  padding: 1rem 0 5rem;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.photo-gallery-figure {
  margin: 0;
}

.photo-gallery-item {
  display: block;
  width: 100%;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
}

.photo-gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 3px 18px rgba(0, 0, 0, .1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.photo-gallery-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.photo-gallery-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  color: #555;
  margin-top: .8rem;
  line-height: 1.5;
}

/* -- 21.1 Lightbox Modal ----------------------------------------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 10, 15, .94);
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
  margin-top: 1.4rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
}

.lightbox-close:hover {
  opacity: 1;
  color: var(--accent1);
}

/* ------------------------------------------------------------
   20. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  /* Logos: don't wait for scroll to shrink these on small screens */
  .navbar-brand img     { height: 70px; }
  .navbar-brand.tiny img{ height: 56px; }
  .footer-logo img      { height: 120px; }

  /* Hero: use a dynamic viewport unit so mobile browser chrome
     (collapsing address bar) doesn't cause layout jumps; vh stays
     as the fallback for browsers that don't support svh. */
  .hero-section         { min-height: 85vh; min-height: 85svh; }

  /* On narrow screens "cover" crops the group photo aggressively.
     Switch to "contain" so the full image is visible, letterboxed
     against the existing dark gradient rather than cut off. */
  .hero-section::before { background-size: contain; background-repeat: no-repeat; background-position: top center; }

  .masonry-grid         { columns: 2 140px; }
  /* Neutralize the wide range of inline pixel heights on masonry
     items/images so mobile doesn't inherit desktop's tall columns */
  .masonry-item         { height: auto !important; }
  .masonry-item img     { height: auto !important; aspect-ratio: 4 / 5; }

  .hero-year-badge      { display: none; }
  .about-text-wrap      { padding: 1.5rem 0; }
  .featured-post        { flex-direction: column; }
  .featured-img         { flex: 0 0 auto; min-height: 200px; }
  .judge-card-name      { font-size: .92rem; }
  .judge-card-title     { font-size: .62rem; }

  /* Filter bar: scroll horizontally instead of wrapping into a
     tall stack of rows before any judge cards are visible */
  .judges-filter-bar    {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    gap: .5rem;
    margin-bottom: 2rem;
    padding-bottom: .5rem;
  }
  .judges-filter-btn    { font-size: .68rem; padding: .5rem 1rem; min-height: 38px; }

  .mission-quote        { padding: 1.5rem 1rem; }
  .seal-section         { height: 300px; }
  .seal-caption         { padding: 1.5rem 1.5rem; }
  .seal-caption p       { font-size: 1.1rem; }

  .article-featured-img { height: 260px; }
  .article-image-row    { flex-direction: column; }
  .article-image-row img{ height: 220px; }
  .article-footer-bar   { justify-content: flex-start; }
  .photo-gallery-grid   { grid-template-columns: 1fr; }
  .lightbox-close       { top: .8rem; right: 1rem; font-size: 1.6rem; }
}

@media (max-width: 575px) {
  .judges-grid-section .row > [class*="col-"] { padding: 0 .4rem; }
}

/* ------------------------------------------------------------
   22. MEMBERSHIP APPLICATION FORM
   ------------------------------------------------------------ */
fieldset {
  border: none;
  margin: 0 0 .5rem;
  padding: 0;
}

legend.form-label {
  float: none;
  width: auto;
  padding: 0;
  margin-bottom: .6rem;
}

.form-check-input {
  accent-color: var(--primary);
}

fieldset.field-invalid {
  outline: 2px solid var(--accent2);
  outline-offset: 8px;
  border-radius: 4px;
}

.form-note-todo {
  background: #fff8e1;
  border: 1px dashed var(--accent1);
  border-radius: 4px;
  padding: .7rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  line-height: 1.6;
  color: #6b5900;
}
