/* General Styling Adjustments */
.centered {
  align-self: center; /* Center vertically */
  justify-self: center; /* Center horizontally */
}

body {
  font-family: "Roboto Flex", sans-serif;
  margin: 0;
  padding: 0;
}

.header {
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  padding: 10px 0;
}

.name {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.title {
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}

.container-main {
  display: grid;
  grid-template-rows: auto auto;
  grid-gap: 20px;
  padding: 20px;
  max-width: 1440px;
  margin: 0 auto; /* Center horizontally */
}

.container-top {
  display: grid;
  grid-template-rows: auto auto auto;
  grid-gap: 20px;
}

.container-top-main {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-gap: 20px;
  grid-template-areas: "connect-left content connect-right";
}

.pic-connect-left, .pic-connect-right {
  padding-top: 20px;
}

.container-top-main-content {
  display: grid;
  grid-template-rows: auto auto auto auto;
  grid-gap: 10px;
  text-align: center;

    grid-template-areas: 
        "logo" 
        "tagline" 
        "text" 
        "specialties"
}

.pic-logo {
  grid-area: logo;
  justify-self: center;
}

.pic-logo > img {
  object-fit: scale-down;
  width: 50%;
  max-height: 200px; /* Set a max-height for better control */
}

.pic-specialties, .pic-trees {
  max-width: 100%;
}

.pic > img {
  object-fit: cover;
  width: 100%;
  max-height: 100%;
}

.container-bottom {
  display: grid;
  grid-template-rows: auto auto auto;
  background-color: #daf8ff;
}

.container-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  justify-items: center; /* Center team members */
  padding: 20px;
}

.container-team-member {
  display: grid;
  grid-template-rows: auto auto auto auto;
  grid-gap: 10px;
  align-items: center;
  justify-items: center;
  padding: 20px;
}

.container-bio {
  display: grid;
  grid-template-rows: repeat(5, auto);
}

.bio-row {
  display: flex;
  align-items: center; /* Center items vertically */
  background-image: url('check.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  padding-left: 48px;
  height: 32px;
}

.pic-shirley, .pic-ron {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.pic-shirley > img {
    object-fit: scale-down;
    width: 200px;
    max-height: 200px; /* Set a max-height for better control */
}

.pic-ron > img {
    object-fit: scale-down;
    width: 200px;
    max-height: 200px; /* Set a max-height for better control */
}

.pic-handshake {
  background-image: url('handshake.png');
  background-repeat: no-repeat;
  width: 100%;
  height: 200px;
  background-position: center;
  background-size: contain;
}

/* Footer Styling */
.footer {
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-text span {
    font-weight: bold;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-link {
/*    color: #fff;*/
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #02b0f1; /* Change color on hover */
}

/* Media Queries for Mobile */
@media screen and (max-width: 768px) {
  /* Make top section stack on mobile */
  .container-top-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content";
  }

  .container-top-main-content {
    grid-template-rows: auto auto auto auto;
  }

  .pic-logo > img {
    width: 70%;
    max-height: 150px;
  }

  .container-team {
    grid-template-columns: 1fr; /* Stack team members vertically */
  }

  .container-team-member {
    grid-template-rows: auto auto auto auto;
  }

  .bio-row {
    height: auto;
  }

  .pic-shirley, .pic-ron {
    width: 150px;
    height: 150px;
  }

  .container-main {
    padding: 15px; /* Less padding on mobile */
  }

  .container-bottom {
    padding: 15px;
  }
    
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
    
  .footer-text {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .header {
    font-size: 1.2rem; /* Reduce font size on small screens */
  }

  .name {
    font-size: 1rem;
  }

  .title {
    font-size: 0.9rem;
  }

  .container-top-main-content {
    grid-template-rows: auto auto auto;
  }

  .pic-logo > img {
    width: 80%;
    max-height: 120px;
  }

  .container-team {
    grid-template-columns: 1fr;
  }

  .pic-shirley, .pic-ron {
    width: 120px;
    height: 120px;
  }

  .bio-row {
    font-size: 0.8rem; /* Smaller text for bio rows */
  }

  .footer-text {
    font-size: 0.8rem;
  }
    
  .footer-link {
    font-size: 0.8rem;
  }
}
