/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}
body, html {
  margin: 0; padding: 0;
  font-family: 'Lato', Helvetica Neue, Helvetica, Arial, sans-serif;
  background: #f8f8f8;
  color: #0A1F44;
  scroll-behavior: smooth;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Garamond&family=Lato&display=swap');

/* Colors */
:root {
  --navy: #0A1F44;
  --gold: #C9A23F;
  --white: #fff;
  --lightgrey: #f8f8f8;
}

/* Navbar */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.3s ease;
  font-family: 'Garamond', serif;
}
header.scrolled {
  background-color: var(--grey);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

header.nav-logo-icon {
  height: 40px;   /* samakan dengan ukuran svg lama */
  width: auto;    /* biar proporsional */
  display: inline-block;
  vertical-align: middle;
}
header.nav-logo-text {
  margin-left: 8px; /* jarak dengan icon */
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-logo svg {
  width: 36px;
  height: 36px;
  fill: var(--gold);
  margin-right: 0.5rem;
}
.nav-logo-text {
  font-family: 'Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  user-select: none;
}
ul.nav-menu {
  list-style: none;
  display: flex;
  gap: 0rem;
  margin: 0;
  padding: 0;
}
ul.nav-menu li {
  font-family: 'Garamond', serif;
  font-weight: 600;
  font-size: 1rem;
}
ul.nav-menu li a {
  color: #a29e49;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}
header:not(.scrolled) ul.nav-menu li a {
  color: var( --gold: #FFD700);
}
ul.nav-menu li a:hover,
ul.nav-menu li a:focus {
  color: var(--gold);
  outline: none;
}

/* Hamburger menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}
.nav-toggle:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Hamburger animation when active */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Responsive nav menu */
@media (max-width: 768px) {
  ul.nav-menu {
    position: fixed;
    top: 60px; /* height of navbar */
    left: 0;
    right: 0;
    background: transparent;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 3px solid var(--gold);
  }
  ul.nav-menu.open {
    max-height: 600px; /* enough to show all menu items */
  }
  ul.nav-menu li {
    width: 100%;
    text-align: center;
    margin: 0.35rem 0;
  }
  ul.nav-menu li a {
    color: var(--gold);
    font-size: 1.1rem; /* ↓ kecil 1 tingkat */
    display: block;
    padding: 0.5rem 0;
  }
  ul.nav-menu li a:hover,
  ul.nav-menu li a:focus {
    color: #fff;
  }
  .nav-toggle {
    display: flex;
    position: relative;
  }
  header.scrolled ul.nav-menu {
    background: var(--navy);
  }
}



/* Parallax sections */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.divider-gold {
  height: 3px;
  background: var(--gold);
  width: 80px;
  margin: 2rem auto 3rem auto;
  border-radius: 2px;
}

/* Hero / Home */
#home {
  color: var(--white);
  font-family: 'Garamond', serif;
  background-image: url('https://noblelawoffice.id/img-11-x18/back1.png');
  
}
#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,31,68,0.45);
  z-index: 0;
}
#home .hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
#home .hero-logo-img {
  width: 72px;   /* samakan dengan svg lama */
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
} {
  height: 64px;   /* samakan dengan viewBox 64x64 dari svg */
  width: auto;    /* biar rasio gambar tidak pecah */
  display: inline-block;
  vertical-align: middle;
}
#home .hero-logo {
  margin-bottom: 1rem;
}
#home .hero-logo svg {
  width: 72px;
  height: 72px;
  fill: var(--gold);
  margin: 0 auto 1rem auto;
  display: block;
}
#home h1 {
  font-size: 3.2rem; /* ↓ kecil 1 tingkat */
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  letter-spacing: 0.1em;
}
#home p.tagline {
  font-size: 1.3rem; /* ↓ kecil 1 tingkat */
  font-style: italic;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
}
#home button.cta {
  background-color: var(--gold);
  border: none;
  color: var(--navy);
  font-family: 'Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem; /* ↓ kecil 1 tingkat */
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(201,162,63,0.5);
  transition: background-color 0.3s ease, color 0.3s ease;
}
#home button.cta:hover,
#home button.cta:focus {
  background-color: #b38a2f;
  color: var(--white);
  outline: none;
}


/* About Us */
#about {
  background: var(--white);
  color: var(--navy);
  padding-top: 6rem;
  padding-bottom: 6rem;
  font-family: 'Garamond', serif;
  background-attachment: scroll;
}
#about h2 {
  font-size: 2.4rem; /* ↓ kecil 1 tingkat */
  font-weight: 700;
  margin-bottom: 0.5rem;
}
#about .divider-gold {
  margin-bottom: 2rem;
}
#about .about-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}
#about .about-text {
  flex: 1 1 320px;
  font-size: 1rem; /* ↓ kecil 1 tingkat */
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
  color: #222;
  text-align: justify;
}
#about .about-image {
  flex: 1 1 320px;
  max-width: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(10,31,68,0.15);
}
#about .about-image img {
  width: 100%;
  height: auto;
  display: block;
}


     /* Section Background */
    #practice-areas {
      background: linear-gradient(135deg, #f8f8f8 0%, #e8ecf4 100%);
      color: #0A1F44;
      padding: 6rem 1.5rem;
      font-family: 'Garamond', serif;
      background-attachment: fixed; /* Subtle parallax */
      position: relative;
      overflow: hidden;
    }
    
    /* Header and Intro */
    #practice-areas h2 {
      font-size: 2.75rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--navy);
      text-align: center;
    }
    
    .divider-gold {
      height: 3px;
      background: var(--gold);
      width: 80px;
      margin: 0 auto 3rem auto;
      border-radius: 2px;
    }
    
    #practice-areas .intro {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.8s ease forwards;
      max-width: 800px;
      margin: 0 auto 3rem;
      font-family: 'Lato', sans-serif;
      font-size: 1.1rem;
      color: #555;
      line-height: 1.6;
      text-align: center;
    }
    
    /* Cards Container - Responsive Grid */
    #practice-areas .cards3-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2.5rem;
      justify-items: center;
      padding: 0 1rem;
    }
    
    /* Responsive breakpoints */
    @media (max-width: 768px) {
      #practice-areas .cards3-container {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
      #practice-areas {
        padding: 4rem 1rem;
      }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
      #practice-areas .cards3-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
      }
    }
    
    @media (min-width: 1025px) {
      #practice-areas .cards3-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
      }
    }
    
    /* Individual Practice Area Card */
    .practice-card {
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 8px 32px rgba(10, 31, 68, 0.1);
      padding: 0;
      text-align: center;
      font-family: 'Lato', sans-serif;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      width: 100%;
      max-width: 350px;
      overflow: hidden;
      position: relative;
      opacity: 0;
      transform: translateY(50px) scale(0.95);
      cursor: pointer;
    }
    
    /* Staggered entrance animation */
    .practice-card:nth-child(1) { animation: cardFadeInUp 0.8s ease 0.1s forwards; }
    .practice-card:nth-child(2) { animation: cardFadeInUp 0.8s ease 0.2s forwards; }
    .practice-card:nth-child(3) { animation: cardFadeInUp 0.8s ease 0.3s forwards; }
    .practice-card:nth-child(4) { animation: cardFadeInUp 0.8s ease 0.4s forwards; }
    .practice-card:nth-child(5) { animation: cardFadeInUp 0.8s ease 0.5s forwards; }
    .practice-card:nth-child(6) { animation: cardFadeInUp 0.8s ease 0.6s forwards; }
    .practice-card:nth-child(7) { animation: cardFadeInUp 0.8s ease 0.7s forwards; }
    
    @keyframes cardFadeInUp {
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* Image Container */
    .image-container {
      position: relative;
      height: 200px;
      overflow: hidden;
      border-radius: 20px 20px 0 0;
    }
    
    .practice-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease, filter 0.4s ease;
      filter: grayscale(100%) brightness(0.8); /* Black and white effect */
    }
    
    .image-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(201, 162, 63, 0.1) 0%, rgba(10, 31, 68, 0.2) 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
      border-radius: 20px 20px 0 0;
    }
    
    /* Card Content */
    .card3-content {
      padding: 2rem 1.5rem 1.5rem;
    }
    
    .practice-title {
      font-weight: 700;
      font-size: 1.4rem;
      margin-bottom: 0.75rem;
      color: var(--navy);
      font-family: 'Garamond', serif;
      transition: color 0.3s ease;
    }
    
    .practice-description {
      font-size: 1rem;
      color: #555;
      line-height: 1.6;
      margin: 0;
    }
    
    /* Hover/Focus Effects */
    .practice-card:hover,
    .practice-card:focus-within {
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 20px 60px rgba(10, 31, 68, 0.2), 0 0 20px rgba(201, 162, 63, 0.1);
      outline: none;
    }
    
    .practice-card:hover .practice-image {
      transform: scale(1.05);
      filter: grayscale(100%) brightness(1) sepia(0.2); /* Subtle gold tint on hover */
    }
    
    .practice-card:hover .image-overlay {
      opacity: 1;
    }
    
    .practice-card:hover .practice-title {
      color: var(--gold);
    }
    
    /* Mobile Adjustments */
    @media (max-width: 768px) {
      .practice-card:hover {
        transform: translateY(-5px) scale(1.01);
      }
      
      .image-container {
        height: 180px;
      }
    }
   
    

/* Our Expert */
#expert {
  background: var(--lightgrey);
  color: var(--navy);
  padding-top: 6rem;
  padding-bottom: 6rem;
  font-family: 'Garamond', serif;
  background-attachment: scroll;
}
#expert h2 {
  font-size: 2.4rem; /* ↓ kecil 1 tingkat */
  font-weight: 700;
  margin-bottom: 0.5rem;
}
#expert .divider-gold {
  margin-bottom: 2rem;
}
#expert .cards-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

#expert .cards2-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
}

/* Additional breakpoints for better control */
@media (max-width: 600px) {
  #expert .cards-container {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  #expert .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  #expert .cards2-container {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  #expert .cards2-container {
    grid-template-columns: repeat(2, 1fr);
  }
}


.lawyer-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(10,31,68,0.1);
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  font-family: 'Lato', sans-serif;
  transition: box-shadow 0.3s ease;
  width: 100%;
  max-width: 320px;
}
.lawyer-card:hover,
.lawyer-card:focus-within {
  box-shadow: 0 8px 20px rgba(10,31,68,0.2);
  outline: none;
}
.lawyer-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  border: 3px solid var(--gold);
}
.lawyer-name {
  font-weight: 700;
  font-size: 1.1rem; /* ↓ kecil 1 tingkat */
  margin-bottom: 0.25rem;
  color: var(--navy);
}
.lawyer-title {
  font-style: italic;
  font-size: 0.9rem; /* ↓ kecil 1 tingkat */
  color: #555;
  margin-bottom: 0.5rem;
}
.lawyer-specialization {
  font-size: 0.85rem; /* ↓ kecil 1 tingkat */
  color: #333;
}

/* Footer */
footer {
  background: var(--grey);
  color: var(--gold);
  text-align: center;
  padding: 1.5rem 1rem;
  font-family: 'Garamond', serif;
  font-size: 0.8rem; /* ↓ kecil 1 tingkat */
  user-select: none;
}
footer .footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
footer .footer-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
}
footer .footer-logo span {
  font-weight: 700;
  font-size: 1.1rem; /* ↓ kecil 1 tingkat */
}
footer .footer-tagline {
  font-style: italic;
  font-size: 0.9rem; /* ↓ kecil 1 tingkat */
  margin-bottom: 0.5rem;
}
footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

footer .footer-logo-img {
  width: auto;
  height: 40px;
  display: inline-block;
}

/* Buttons & links */
button, input, textarea {
  font-family: inherit;
}

/* Responsive */
@media (max-width: 768px) {
  #home h1 {
    font-size: 2.2rem; /* ↓ kecil 1 tingkat */
  }
  #home p.tagline {
    font-size: 1.1rem; /* ↓ kecil 1 tingkat */
  }
  #about .about-content {
    flex-direction: column;
  }
  #about .about-image {
    max-width: 100%;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

    /* Scoped CSS for Our Expert Section (Full Photo Hover Design) */
    /* Note: Builds on your global CSS. Add to main stylesheet for production. */
    
    /* Section Background */
    #expert {
      background: linear-gradient(135deg, #f8f8f8 0%, #e8ecf4 100%);
      color: #0A1F44;
      padding: 6rem 1.5rem;
      font-family: 'Garamond', serif;
      background-attachment: fixed; /* Subtle parallax */
      position: relative;
      overflow: hidden;
    }
    
    /* Fancy intro text */
    #expert .expert-intro {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.8s ease forwards;
      max-width: 800px;
      margin: 0 auto 3rem;
      font-family: 'Lato', sans-serif;
      font-size: 1.1rem;
      color: #555;
      line-height: 1.6;
      text-align: center;
    }
    
    /* Divider (if not already in global CSS) */
    .divider-gold {
      height: 3px;
      background: #C9A23F;
      width: 80px;
      margin: 2rem auto 3rem auto;
      border-radius: 2px;
    }
    
    /* Cards Container - Responsive Grid */
    #expert .cards-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2.5rem;
      justify-items: center;
      margin-top: 30px;
	  margin-bottom: 30px
    }
    
    /* Responsive breakpoints for grid */
    @media (max-width: 768px) {
      #expert .cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
      #expert {
        padding: 4rem 1rem;
      }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
      #expert .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
      }
    }
    
    @media (min-width: 1025px) {
      #expert .cards-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
      }
    }
	  #expert .cards2-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2.5rem;
      justify-items: center;
      padding: 0 1rem;
    }
	
	    @media (max-width: 768px) {
      #expert .cards2-container {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
      #expert {
        padding: 4rem 1rem;
      }
    }
	
	    @media (min-width: 769px) and (max-width: 1024px) {
      #expert .cards2-container {

        gap: 2rem;
      }
    }
    
    @media (min-width: 1025px) {
      #expert .cards2-container {

        gap: 2.5rem;
      }
    }
    
    /* Individual Lawyer Card - Full Photo Design */
    .lawyer-card {
      position: relative;
      width: 100%;
      max-width: 320px;
      height: 400px; /* Fixed height for consistency; adjust as needed */
      border-radius: 20px;
      overflow: hidden;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      box-shadow: 0 8px 32px rgba(10, 31, 68, 0.1);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      cursor: pointer;
      opacity: 0;
      transform: translateY(50px) scale(0.95);
    }
    
    /* Staggered entrance animation for cards */
    .lawyer-card:nth-child(1) { animation: cardFadeInUp 0.8s ease 0.1s forwards; }
    .lawyer-card:nth-child(2) { animation: cardFadeInUp 0.8s ease 0.2s forwards; }
    .lawyer-card:nth-child(3) { animation: cardFadeInUp 0.8s ease 0.3s forwards; }
    .lawyer-card:nth-child(4) { animation: cardFadeInUp 0.8s ease 0.4s forwards; }
    
    @keyframes cardFadeInUp {
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* Photo Background (set via inline style in HTML) */
    .lawyer-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      z-index: 1;
      transition: transform 0.4s ease;
    }
    
    /* Transparent Overlay - Appears on Hover */
    .card-overlay {
      /*position: Fixed;*/
      inset: 0;
      background: rgba(157, 149, 68, 0.0);
      opacity: 0;
      transition: opacity 0.4s ease;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 2rem 1.5rem;
      box-sizing: border-box;
    }
    
    /* Card Content - Slides Up on Hover */
    .card-content {
      transform: translateY(100%); /* Hidden below initially */
      opacity: 0;
      transition: all 0.4s ease 0.1s; /* Delay for smooth slide */
      z-index: 3;
      color: #fff;
      text-align: left; /* Left-aligned for readability */
    }
    
    .lawyer-name {
      font-weight: 700;
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
      color: #000000a3;
      font-family: 'Garamond', serif;
      text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* For readability over image */
    }
    
    .lawyer-title {
      font-style: italic;
      font-size: 1.0rem;
      color: #C9A23F;
      margin-bottom: 0.75rem;
      font-weight: 600;
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .lawyer-specialization {
      font-size: 0.9rem;
      color: #000000c7;
      margin-bottom: 1rem;
      font-weight: 500;
      opacity: 0.9;
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    /* Bio Details - Compact on Hover */
    .bio-details {
      font-size: 0.85rem;
      color: #000000c7;
      line-height: 1.4;
      font-style: italic;
      opacity: 0.95;
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
      max-height: 60px; /* Limit height for compact view */
      overflow: hidden;
    }
    
    .bio-details p {
      margin: 0;
    }
    
    /* Hover/Focus Effects - Transparent Reveal */
    .lawyer-card:hover,
    .lawyer-card:focus-within {
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 20px 60px rgba(10, 31, 68, 0.3), 0 0 20px rgba(201, 162, 63, 0.2);
      outline: none;
    }
    
    .lawyer-card:hover::before,
    .lawyer-card:focus-within::before {
      transform: scale(1.05); /* Subtle zoom on image */
    }
    
    .lawyer-card:hover .card-overlay,
    .lawyer-card:focus-within .card-overlay {
      opacity: 1;
    }
    
    .lawyer-card:hover .card-content,
    .lawyer-card:focus-within .card-content {
      transform: translateY(0);
      opacity: 1;
    }
    
    /* Mobile: Always show partial overlay for usability */
    @media (max-width: 768px) {
      .lawyer-card {
        height: 350px;
      }
      
      .card-overlay {
        opacity: 0.3; /* Partial transparency always visible */
      }
      
      .card-content {
        transform: translateY(50%); /* Partially visible */
        opacity: 0.8;
      }
      
      .lawyer-card:hover .card-overlay,
      .lawyer-card:focus-within .card-overlay {
        opacity: 0.8; /* Full on tap/focus */
      }
      
      .lawyer-card:hover .card-content,
      .lawyer-card:focus-within .card-content {
        transform: translateY(0);
        opacity: 1;
      }
      
      .lawyer-card:hover,
      .lawyer-card:focus-within {
        transform: translateY(-5px) scale(1.01); /* Reduced on mobile */
      }
    }
	
	/* Base styles */
        * {
            margin: 0;
            padding: 5px;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #ffffff;
            color: #333333;
            line-height: 1.6;
        }

        .team-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 20px;
            background-color: #ffffff;
        }

        .section-title {
            text-align: center;
            margin-bottom: 40px;
        }

        .section-title h2 {
            font-size: 32px;
            font-weight: bold;
            color: #000000;
            margin-bottom: 10px;
        }

        .section-title p {
            color: #666666;
            font-size: 16px;
        }

        .team-carousel {
            display: flex;
            overflow-x: auto;
            gap: 20px;
            padding: 20px 0;
            scroll-snap-type: x mandatory;
            scrollbar-width: thin;
            scrollbar-color: #cccccc #f1f1f1;
        }

        .team-carousel::-webkit-scrollbar {
            height: 8px;
        }

        .team-carousel::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .team-carousel::-webkit-scrollbar-thumb {
            background: #cccccc;
            border-radius: 4px;
        }

        .team-member {
            flex: 0 0 200px;
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s ease;
            scroll-snap-align: start;
			
        }

        .team-member:hover {
            transform: scale(1.05);
        }

        .team-member img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: box-shadow 0.3s ease;
			padding: 9px;
        }

        .team-member:hover img {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            position: relative;
            margin: 5% auto;
            width: 80%;
            max-width: 600px;
            background-color: #ffffff;
            border-radius: 12px;
            padding: 0;
            animation: slideIn 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .close {
            position: absolute;
            right: 20px;
            top: 15px;
            color: #999999;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: #000000;
        }

        .modal-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
            border-radius: 12px 12px 0 0;
        }

        .modal-info {
            padding: 30px;
            text-align: center;
        }

        .modal-info h3 {
            font-size: 24px;
            color: #000000;
            margin-bottom: 8px;
        }

        .modal-info .title {
            font-size: 18px;
            color: #D4AF37;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .modal-info .specialization {
            font-size: 16px;
            color: #666666;
            font-style: italic;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
            .team-section {
                padding: 40px 15px;
            }

            .section-title h2 {
                font-size: 28px;
            }

            .team-member {
                flex: 0 0 150px;
            }

            .team-member img {
                height: 150px;
            }

            .modal-content {
                width: 95%;
                margin: 10% auto;
            }

            .modal-image {
                height: 250px;
            }

            .modal-info {
                padding: 20px;
            }

            .modal-info h3 {
                font-size: 22px;
            }
        }

        @media (max-width: 480px) {
            .team-member {
                flex: 0 0 120px;
            }

            .team-member img {
                height: 120px;
            }

            .section-title h2 {
                font-size: 24px;
            }

            .modal-image {
                height: 200px;
            }
        }
		
		        /* Base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Georgia', serif;
        }
        
        body {
            background-color: #ffffff;
            color: #000000;
            line-height: 1.6;
        }
        
        .contact-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 20px;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 32px;
            font-weight: 600;
            color: #000000;
            margin-bottom: 15px;
        }
        
        .section-title::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background-color: #D4AF37;
            margin: 0 auto;
        }
        
        .contact-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
        }
        
        .contact-info {
            flex: 1;
            min-width: 300px;
			text-align: justify;
        }
        
        .contact-info h3 {
            font-size: 22px;
            margin-bottom: 20px;
            color: #000000;
            font-weight: 600;
        }
        
        .contact-details {
            margin-bottom: 30px;
			text-align: justify;
        }
        
        .contact-item {
            display: flex;
            margin-bottom: 15px;
        }
        
        .contact-icon {
            min-width: 30px;
            color: #D4AF37;
            font-weight: bold;
        }
        
        .contact-text {
            color: #333333;
        }
        
        .contact-form {
            flex: 1;
            min-width: 300px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #000000;
            font-weight: 500;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #dddddd;
            border-radius: 4px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #D4AF37;
        }
        
        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }
        
        .submit-btn {
            background-color: #D4AF37;
            color: #000000;
            border: none;
            padding: 12px 30px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .submit-btn:hover {
            background-color: #BF9B30;
        }
        
        /* Responsive styles */
        @media (max-width: 768px) {
            .contact-container {
                flex-direction: column;
            }
            
            .section-title h2 {
                font-size: 28px;
            }
        }
        
        @media (max-width: 480px) {
            .contact-section {
                padding: 40px 15px;
            }
            
            .section-title h2 {
                font-size: 24px;
            }
            
            .contact-info h3 {
                font-size: 20px;
            }
        }

/* ========================================
   VARIABEL CSS (Custom Properties)
   ======================================== */
:root {
  --navy: #001f3f; /* Warna navy untuk teks utama */
  --gold: #d4af37; /* Warna emas untuk divider dan accent */
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-dark: #666666;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ========================================
   EXPERTS SECTION UTAMA
   ======================================== */
.experts-section {
  padding: 60px 20px;
  background-color: var(--white);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.experts-title {
  margin-bottom: 40px;
}

.main-heading {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
  text-align: center;
}

.gold-divider {
  width: 80px;
  height: 4px;
  background-color: var(--gold);
  margin: 0 auto 20px;
}

.experts-overview p {
  font-size: 1.1rem;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   CAROUSEL/SLIDER
   ======================================== */
.experts-slider {
  display: flex;
  overflow-x: auto; /* Aktifkan horizontal scroll */
  overflow-y: hidden; /* Sembunyikan vertical scroll */
  gap: 20px;
  height: 500px; /* Tinggi yang diminta: 500px */
  padding: 20px 0;
  scroll-snap-type: x mandatory; /* Snap ke item terdekat */
  scroll-behavior: smooth; /* Smooth scroll saat navigasi */
  scrollbar-width: thin; /* Scrollbar tipis di Firefox */
  -ms-overflow-style: auto; /* Scrollbar di IE/Edge */
  -webkit-overflow-scrolling: touch; /* Smooth touch scroll di iOS */
}

.experts-slider::-webkit-scrollbar {
  height: 8px; /* Tinggi scrollbar horizontal */
}

.experts-slider::-webkit-scrollbar-track {
  background: var(--gray-light); /* Background track */
  border-radius: 10px;
}

.experts-slider::-webkit-scrollbar-thumb {
  background: var(--gold); /* Warna thumb emas */
  border-radius: 10px;
}

.experts-slider::-webkit-scrollbar-thumb:hover {
  background: #b8941f; /* Hover effect lebih gelap */
}

.member-profile {
  flex: 0 0 300px; /* Lebar tetap per member */
  height: 100%; /* Penuh tinggi slider */
  cursor: grab; /* Cursor untuk drag */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: center;
  user-select: none; /* Cegah text selection saat drag */
  pointer-events: auto; /* Pastikan bisa diklik */
}

.member-profile:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.member-profile:active {
  cursor: grabbing; /* Saat sedang di-drag */
}

.member-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Gambar scale tanpa distorsi */
  display: block;
}

/* ========================================
   NAVIGASI TOMBOL (Opsional, untuk Scroll Mudah)
   ======================================== */
.slider-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.nav-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s ease, color 0.3s ease;
  box-shadow: var(--shadow);
}

.nav-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--navy);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   MODAL/POPUP
   ======================================== */
.popup-overlay {
  display: none; /* Sembunyi default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.popup-overlay.active {
  display: flex !important; /* Tampilkan dan center saat active */
  animation: fadeIn 0.3s ease; /* Fade in effect */
}

.popup-box {
  background-color: var(--white);
  margin: 5% auto;
  padding: 0;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease; /* Slide up effect */
}

.popup-close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
  line-height: 1;
}

.popup-close:hover {
  color: var(--navy);
}

.popup-img {
    width: auto;
    height: 250px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    padding: 5px;
}

.popup-details {
  padding: 20px;
  text-align: left;
}

.popup-details h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.5rem;
}

.role {
  font-weight: bold;
  color: var(--gold);
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.expertise {
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


@media (max-width: 768px) {
  .experts-section {
    padding: 40px 15px;
  }
  
  .main-heading {
    font-size: 2rem;
  }
  
  .experts-slider {
    height: 400px; /* Kurangi tinggi di mobile */
    gap: 15px;
    padding: 15px 0;
  }
  
  .member-profile {
    flex: 0 0 250px; /* Lebar lebih kecil di mobile */
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  /* Modal Responsif */
  .popup-box {
    width: 95%;
    margin: 10px;
    max-height: 80vh;
  }
  
  .popup-img {
    height: 200px; /* Gambar lebih kecil di mobile */
  }
  
  .popup-details {
    padding: 15px;
  }
  
  .popup-close {
    right: 15px;
    top: 10px;
    font-size: 24px;
  }
  
  .gold-divider {
    width: 60px;
  }
  
  .experts-overview p {
    font-size: 1rem;
    padding: 0 10px;
  }
}


@media print {
  .experts-slider {
    overflow: visible;
    height: auto;
  }
  
  .popup-overlay {
    display: none !important; 
  }
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.background {
  font-style: italic; /* Italic untuk nuansa naratif */
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.7; /* Spasi lebih longgar untuk paragraf panjang */
  margin: 15px 0 0;
  padding: 10px;
  background-color: rgba(168, 230, 207, 0.1); /* Latar hijau tipis (avocado) untuk highlight */
  border-left: 4px solid var(--avocado-dark); /* Border kiri hijau untuk ikonik */
  border-radius: 0 5px 5px 0;
}
/* Separator Garis (Opsional) */
.separator {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--avocado-dark), transparent);
  margin: 15px 0;
}
/* Responsif: Background Text di Mobile */
@media (max-width: 768px) {
  .background {
    font-size: 0.9rem;
    padding: 8px;
    margin-top: 10px;
  }
  
  .separator {
    margin: 10px 0;
  }
}

/* Navigasi Tombol */
.slider-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.nav-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s ease;
  box-shadow: var(--shadow);
}

.nav-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

    /* Global Fallbacks (if not defined elsewhere) */
    :root {
      --navy: #000000;
      --gold: #8C6D1F;
	  --grey: #e8e8e8;
    }
    
    @import url('https://fonts.googleapis.com/css2?family=Garamond&family=Lato&display=swap');