
* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

body {
  background-color: #f4f4f4;
}

.attorney-header{
    background-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.856) 0%, 
        rgba(0, 0, 0, 0.877) 60%, 
        rgb(0, 0, 0) 100%
    ), url(background/Attorneys\ offices.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    height: 40vh;
    color: white;
    text-align: left;
    padding: 0px 90px;
    box-sizing: border-box;
}

.attorney-header p{
    font-size: 18px;
}

.attorney-header .text-head{
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 20px;
}



.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 200px;
  padding: 20px;
}

.profile-img img{
  width: 200px;
  height: 200px;
  border-radius: 50%;
  /* margin: 0 auto 15px; */
}



h3 {
  margin: 5px 0 10px;
  font-size: 1.2em;
}

.title {
  color: #666;
  margin: 0 0 10px;
  font-size: 0.9em;
}

.email {
  color: #333;
  margin: 0 0 15px;
  font-size: 0.8em;
}

.view-profile {
  background-color: #555;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
}

.view-profile:hover {
  background-color: #333;
}

@media (max-width: 600px) {
  .profile-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

  .attorney-header{
    padding: 0 40px;
  }

 
  
  .card {
    width: 90% !important; /* Force override */
    max-width: none;
    justify-items: center;
    justify-content: center;

  }

  .container {
    flex-direction: column;
    align-items: center;
    justify-items: center;
    justify-content: center;
  }

  .profile-img img {
    width:fit-content;
    max-width: 300px;
    height: auto;
  }

}

/* @media (max-width: 1024px) {
  .profile-img {
    width: 200px;
  }

  .profile-img img {
    width: 200px;
  }
  .card{
    padding: 15px;
  }
}

.main-container {
  margin: 50px;
} */


/* pop up section */

/* Overlay styling */

/* Overlay styling */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Pop-up container styling */
#popup {
    position: relative;
    width: 600px;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Exit icon styling */
#exit-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #000000;
    cursor: pointer;
}

/* Vertical text styling */
#vertical-text {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: rotate(-90deg) translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    white-space: nowrap;
}

/* Profile image styling */
#profile-image {
    width: 150px;
    height: auto;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-bottom: 20px;
}

/* Title styling */
#title {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin: 0;
}

/* Subtitle styling */
#subtitle {
    font-size: 14px;
    color: #666666;
    margin: 5px 0 15px;
}

/* Description text styling */
#description {
    font-size: 14px;
    color: #555555;
    text-align: justify;
    margin-bottom: 20px;
}

/* Education and Admissions section styling */
#education-admissions h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

#education-admissions ul {
    list-style-type: disc;
    text-align: left;
    padding-left: 20px;
    margin-bottom: 20px;
}

#education-admissions li {
    font-size: 14px;
    color: #555555;
    margin-bottom: 10px;
}

/* Email styling */
#email {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
}

/* Buttons container styling */
#attorney-buttons {
    margin: 20px;
    text-align: center;
}

.attorney-button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
}

.attorney-button:hover {
    background-color: #0056b3;
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    #popup {
        width: 90%;
        max-height: 70%;
        overflow-y: auto;
        padding: 20px;
        margin: 20px;
    }

    #exit-icon {
      position: fixed;
      color: #ffffff;
      top: 45px;
      right: 15px;
    }
}