header {
  height: auto !important;
}

* {
  font-family: var(--fontfamily-1);
  scroll-behavior: smooth;
}

/* lead-section css */
.our-team-header {
  width: 100vw;
  height: 300px;
  position: relative;
}

.our-team-header::after {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  background: url("../Images/office_2.jpeg") no-repeat center center/cover;
}

.lead_attorney {
  width: 100vw;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  background: var(--pages-bg-color-1);
  display: grid;
  grid-template-columns: 45% auto;
  align-items: start;
  justify-content: space-evenly;
  gap: 2.5rem;
}



.lead_attorney>img {
  width: 100%;
  max-height: 900px;
  object-fit: cover;
  object-position: 70% 50%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  align-self: stretch;
}

.lead-header h2 {
  text-align: start;
  font-size: 2.3rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.lead-header .lead-para-1 {
  font-weight: 600;
  font-size: 1.1rem;
  color: #7e662e;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.lead-header .lead-para-2 {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 1rem 0;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid;
}

.lead-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.education {
  font-weight: 800 !important;
  color: rgb(120, 106, 36) !important;
}

.lead-info p {
  font-size: 0.95rem;
  line-height: 1.2;
  color: #4a5568;
  margin-bottom: .9rem;
  font-weight: 500;
  text-align: justify;
}

.practice-box-container {
  width: 100%;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 1rem;
}

.practice-box {
  border: 2px solid #c9a24a;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background-color: #fffbf2;
  color: #2c3e50;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-box:hover {
  background-color: #716a59;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 162, 74, 0.2);
}

@media (max-width: 1000px) {
    .lead_attorney {
        gap: 1.5rem;
        padding: 3rem 1.5rem;
    }
    
    .lead-header h2 {
        font-size: 1.8rem;
    }
    
    .lead-header .lead-para-1 {
        font-size: 0.9rem;
    }
    
    .lead-header .lead-para-2 {
        font-size: 0.9rem;
    }
    
    .lead-content {
        gap: 1rem;
    }
    
    .lead-info p {
        font-size: 0.75rem;
    }
    
    .practice-box-container {
        gap: 0.4rem;
    }
    
    .practice-box {
        font-size: 0.7rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (max-width: 800px) {
    .lead_attorney {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2rem;
        padding: 4rem 3rem 2rem 3rem;
    }
    
    /* .lead_attorney::before {
        content: "Our Lead";
        display: block;
        text-align: center;
        font-size: 2rem;
        font-weight: 700;
        color: var(--heading-color-1);
        text-transform: uppercase;
    } */
    
    .lead_attorney>img {
        width: 100%;
        max-height: 900px;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        align-self: stretch;
    }
}

@media (max-width: 550px) {
    .lead_attorney {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.5rem;
        padding: 3rem 1.5rem 1rem 1.5rem;
    }
    
    .lead-header h2 {
        font-size: 1.5rem;
    }
    
    .lead-header .lead-para-1 {
        font-size: 0.8rem;
    }
    
    .lead-header .lead-para-2 {
        font-size: 0.8rem;
    }
    
    .lead-info p {
        font-size: 0.7rem;
    }
    
    .practice-box {
        font-size: 0.6rem;
        padding: 0.4rem 0.6rem;
    }
    .practice-box-container {
        grid-template-columns: 1fr 1fr;
    }
    .practice-box {
      font-size: 0.7rem;
        padding: 0.1rem 1rem;
    }
}

/* ------------ attorneys section  */

.attorneys-section {
  width: 100vw;
  padding: 60px;
  background: #fafaf5;
  font-family: 'Inter', sans-serif;
}

.attorneys-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.attorney-card {
  background: white;
  height: auto;
  border-radius: 18px;
  border: 1px solid #e0ded9;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.attorney-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
}

.attorney-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
  font-weight: 700;
}

.role {
  font-size: 15px;
  color: #7e662e;
  margin-bottom: 12px;
}

.desc {
  border-top: .5px solid rgb(199, 199, 199);
  padding-top: 1rem;
  font-size: 14px;
  line-height: 1.55;
  color: #444;
  text-align: justify;
}


.attorney-button {
  padding: 0.4rem;
  position: absolute;
  width: 100%;
  bottom: 0px;
  border: none;
  background-color: #4a5568;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.attorney-button:hover{
  background-color: #3a4558;
  transform: scale(1.2) translateY(-5px);
}
.hidden-info {
  position: absolute;
  background-color: rgb(255, 250, 250);
  width: 100%;
  height: 92%;
  border-radius: 18px;
  top: -100%;
  left: 0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
  transition: .7s;
  text-align: justify;
}

.space {
  width: 100%;
  height: 2rem;
}

.first-para {
  font-weight: 800;
  font-size: 1rem;
  color: rgb(91, 66, 33);
  border-left: none !important;
}

.hidden-info p {
  border-left: 1px solid black;
  padding-left: 5px;
}

.show {
  top: 0 !important;
}


  @media (max-width: 1000px) {
  
  .attorneys-section {
    padding: 25px;
    padding-top: 40px;
  }
  .attorneys-grid {
    gap: 15px;
  }
    .attorney-img {
      width: 110px;
      height: 110px;
    }
    
    .attorney-card h3 {
      font-size: 16px;
    }
    
    .role {
      font-size: 12px;
    }
    
    .desc {
      font-size: 12px;
    }
  }
  
  @media (max-width: 700px) {
    .attorneys-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
  }