
/* ================================================================
   HERO SECTION — Full-screen image slider with Ken-Burns effect
   ================================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  /* Use flex-start + padding-top so content NEVER hides behind the fixed navbar */
  align-items: flex-start;
  justify-content: center;
  /* Navbar is ~76px from top (top:1rem + ~60px height) */
  padding-top: calc(76px + 2rem);
  box-sizing: border-box;
}

/* Slides */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: kenBurns 8s ease-in-out infinite alternate;
}
.hero-slide.active {
  opacity: 1;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Lady Justice silhouette (CSS-only decorative element) */
.hero-justice-silhouette {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 320px;
  height: 90%;
  background: url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?w=400&q=60') center/cover no-repeat;
  mask-image: linear-gradient(to top, transparent 0%, black 20%, black 80%, transparent 100%),
              linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%, black 80%, transparent 100%),
              linear-gradient(to right, transparent 0%, black 30%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  opacity: 0.15;
  pointer-events: none;
}

/* Overlays */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 15, 35, 0.78) 0%,
    rgba(10, 25, 55, 0.65) 50%,
    rgba(5, 15, 35, 0.50) 100%
  );
}

/* Blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: morphBlob 14s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,75,124,0.4), transparent);
  top: -100px; left: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,152,58,0.25), transparent);
  bottom: -80px; right: -80px;
  animation-delay: -7s;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  padding: 0 2rem;
  color: #fff;
  /* Vertically center in the visible area (below navbar) */
  margin-top: auto;
  margin-bottom: auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hb-dot {
  width: 7px; height: 7px;
  background: var(--acc2, #E8B84B);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-accent {
  font-style: italic;
  background: linear-gradient(135deg, #E8B84B, #F5CC6A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--acc, #C9983A), var(--acc2, #E8B84B));
  color: #1a0e00;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201,152,58,0.4);
  letter-spacing: 0.02em;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,152,58,0.6);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
  color: #fff;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hs-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
}
.hs-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--acc2, #E8B84B);
  line-height: 1;
}
.hs-label { font-size: 0.72rem; }
.hs-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.2);
}

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 100px;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  background: var(--acc2, #E8B84B);
  transform: scale(1.3);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ================================================================
   COURTS LOGO STRIP
   ================================================================ */
.courts-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  overflow: hidden;
}
.cs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}
.cs-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--txt-s);
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}
.cs-logos {
  display: flex;
  gap: 1.5rem;
  animation: scrollLogos 30s linear infinite;
}
.cs-logo-item {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--txt-m);
  padding: 0.3rem 1rem;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s;
}
.cs-logo-item:hover {
  color: var(--acc);
  border-color: var(--acc);
  background: var(--acc-glow);
}
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.ab-badge {
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  color: var(--txt-m);
  font-weight: 500;
}
.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about-img-wrap:hover .about-img {
  transform: scale(1.03);
}
.about-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #fff;
}
.aib-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--acc2, #E8B84B);
  line-height: 1;
}
.aib-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

/* ================================================================
   BLOG PREVIEW GRID
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(42,75,124,0.15);
  border-color: var(--acc);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}
.blog-card-img-wrap {
  overflow: hidden;
  position: relative;
}
.blog-card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--acc);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.blog-card-excerpt {
  font-size: 0.82rem;
  color: var(--txt-s);
  line-height: 1.65;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--txt-s);
}
.bcm-author { font-weight: 500; color: var(--txt-m); }
.bcm-read { color: var(--acc); font-weight: 600; }

/* ================================================================
   TEAM CARD FIX — Click to flip (no empty space on hover)
   ================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.team-card-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* FIXED: No height jump on hover/flip. Always same height. */
  perspective: 1200px;
}
.team-card-wrap.in-view {
  opacity: 1;
  transform: translateY(0);
}
.team-card {
  width: 100%;
  height: 380px; /* FIXED: Fixed height prevents layout shift */
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Flip on CLICK (not hover) to avoid the accidental flip issue */
.team-card.flipped {
  transform: rotateY(180deg);
}
/* Add hover highlight WITHOUT flipping */
.team-card:hover .tc-front {
  box-shadow: 0 20px 50px rgba(42,75,124,0.2), 0 0 0 2px var(--acc);
}
.tc-front, .tc-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius2);
  overflow: hidden;
}
.tc-front {
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.35s ease;
}
.tc-back {
  background: linear-gradient(135deg, var(--nav-bg2, #1E3660) 0%, #0a1628 100%);
  transform: rotateY(180deg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.tc-front-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
}
.tc-img-wrap {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--acc);
  margin-bottom: 1.25rem;
  background: var(--glass2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tc-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.tc-initials {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--acc);
}
.tc-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.3rem;
}
.tc-role {
  font-size: 0.78rem;
  color: var(--acc);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.tc-tagline {
  font-size: 0.75rem;
  color: var(--txt-s);
  line-height: 1.5;
}
.tc-flip-hint {
  position: absolute;
  bottom: 1rem;
  font-size: 0.68rem;
  color: var(--txt-s);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.team-card:hover .tc-flip-hint { opacity: 1; }

/* Card Back */
.tc-back-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.tc-back-role {
  font-size: 0.72rem;
  color: var(--acc2, #E8B84B);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}
.tc-back-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  flex: 1;
}
.tc-back-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}
.tc-back-meta strong { color: rgba(255,255,255,0.75); }
.tc-back-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.tc-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  border-radius: 4px;
  padding: 0.18rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 500;
}

/* Add-member card */
.team-card-add {
  width: 100%;
  height: 380px;
  border: 2px dashed var(--border);
  border-radius: var(--radius2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--txt-s);
  cursor: pointer;
  transition: all 0.35s ease;
}
.team-card-add:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--acc-glow);
}
.team-card-add svg { opacity: 0.6; }

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */
@media (max-width: 768px) {
  .hero-content { padding: 0 1.5rem; }
  .hero-stats { gap: 0.8rem; }
  .hs-divider { display: none; }
  .hero-dots { right: 1rem; bottom: 80px; }
  .hero-justice-silhouette { display: none; }
  .cs-inner { gap: 1rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}


/* == DESKTOP & LAPTOP VISIBILITY RULE: MOBILE STICKY BAR == */
.mobile-sticky-bar, #mobile-sticky-bar {
  display: none !important;
}
@media screen and (max-width: 768px) {
  .mobile-sticky-bar, #mobile-sticky-bar {
    display: flex !important;
    padding: 10px 16px !important;
  }
  #lex-launcher {
    display: none !important;
  }
}
