* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  color: #212121;
}

h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
}

h2 {
  font-size: 28px;
  line-height: 35px;
  font-weight: 400;
}

h2 em {
  color: gray;
}

h3 {
  font-size: 16px;
}

body p {
  color: #292929;
  font-size: 14px;
  font-family: Lato, sans-serif;
  font-weight: 500;
}


p a {
  color: #0f2554;
  text-decoration: none;
  font-weight: 700;
}

html {
  background-image: url('../images/background.png');
  background-repeat: repeat;
  background-attachment: fixed;
}

body {
  color: #656565;
  font-size: 14px;
  line-height: 24px;
  margin: 64px auto;
  max-width: 1140px;
  width: 100%;
  font-weight: 500;
  position: relative;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin-bottom: 0;
}

body::before {
  border-bottom: 40px solid #fff;
  border-right: 40px solid rgba(0, 0, 0, 0);
  content: "";
  display: block;
  height: 0;
  width: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.inner {
  max-width: 940px;
  margin: 0 auto;
}

header {
  background-color: white;
  position: relative;
}

header>.inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  border-bottom: 1px solid #ccc;
}

header img {
  height: auto;
  width: 340px;
}

.main-content {
  text-align: center;
  background-color: white;
}

.main-content img {
  width: 100%;
  padding-top: 20px;
}

.services {
  display: flex;
  justify-content: space-around;
}

.services div {
  width: 22%;
  text-align: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

footer p {
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  margin-top: -24px;
  transition: transform 0.3s ease-out;
}

nav li {
  display: inline-block;
}

nav a {
  color: #292929;
  font-size: 16px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #0f2554;
}

nav a.active,
nav>a:hover {
  border-bottom: 2px solid #0f2554;
  padding-bottom: 24px;
}

/* hide submenus initially */
nav ul ul {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0px 30px 16px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  z-index: 1;
  padding: 0;
  padding-top: 24px;
  width: auto;
  height: auto;
}

nav ul li:hover>ul {
  display: block;
}

nav ul ul li {
  display: block;
  margin: 0;
  border-bottom: 1px solid #e9e9e9;
}

nav ul ul li:last-child {
  border-bottom: none;
}

nav ul ul li a {
  white-space: nowrap;
  text-align: left;
  text-transform: none;
  margin: 0;
  font-size: 16px;
  color: #212121;
  font-weight: 500;
  padding: 16px 20px 15px;
  display: inline-block;
  width: 100%;
}

nav ul ul li a:hover {
  background-color: #0f2554;
  color: white;
}

nav ul li {
  position: relative;
}

nav ul li>ul {
  transition: visibility 0.2s ease-in-out, opacity 0.2s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

nav ul li:hover>ul,
nav ul li ul:hover {
  opacity: 1;
  visibility: visible;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 22px;
  right: 10px;
  z-index: 1;
}

.menu-close {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1001;
}

/* home */

.home-main {
  background-color: white;
}

.home-main .inner {
  display: grid;
  grid-template-columns: 1fr 256px;
  gap: 20px;
  padding-top: 32px;
}

.home-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.home-aside__images {}

.home-aside__images img {
  width: 100%;
  margin-bottom: 20px;
}

.home-main .alert {
  background: #D8ECF5;
  border: 1px solid #9AC9DF;
  color: #5593B1;
  font-weight: 700;
  font-size: 14px;
  color: #292929;
  padding: 20px;
}

.home-news {
  background-color: white;
  padding: 20px;
  /* top and bottom border with #5badda */

}

.home-news .inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #5badda;
  border-bottom: 1px solid #5badda;
  padding-block: 32px;

}

.home-news img {
  width: 100%;
}


.home-contact {
  background-color: white;
}

.home-contact .inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  padding-block: 32px;
}

iframe {
  width: 100%;
}

.attorneys-grid {
  background-color: white;
}

.attorneys-heading {
  border-bottom: 1px solid #5badda;
}

@media (max-width: 768px) {

  /* 200px wide logo */
  header img {
    width: 200px;
  }

  .main-content img {
    height: 300px;
    object-fit: cover;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateX(-100%);
    z-index: 1000;
  }

  nav.open {
    transform: translateX(0);
    padding: 24px;
    overflow: auto;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    padding: 20px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    padding: 10px;
    display: block;
    width: 100%;
    text-align: left;
  }

  nav ul ul {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
    background: none;
  }

  nav ul li.show>ul {
    display: block;
  }

  nav ul ul li a {
    padding-left: 30px;
  }

  nav ul li>a::after {
    content: "";
  }

  nav ul li.show>a::after {
    content: "";
  }

  body {
    width: auto;
    margin: 0;
  }

  .menu-toggle {
    display: block;
    color: #292929;
    /* Ensure the menu toggle button is visible on mobile */
  }

  nav.open .menu-toggle {
    display: none;
    /* Hide the menu toggle button when menu is open */
  }

  .menu-close {
    display: block;
    /* Ensure the close button is visible on mobile when menu is open */
  }

  nav:not(.open) .menu-close {
    display: none;
    /* Hide the close button when menu is closed */
  }

  nav ul li:hover>ul {
    display: none;
    /* Disable hover interaction for submenus */
  }

  /* home */
  .home-main .inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .home-aside .home-aside__images {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 20px;
  }

  .home-news .inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}


.input-container {
  display: flex;
  flex-direction: column;
}

.input-container label {
  display: block;
  margin-bottom: 10px;
  color: #656565;
  font-weight: 400;
}

.input-container input,
.input-container textarea {
  font-family: 'Lato', sans-serif;
  border: 1px solid #e9e9e9;
  padding: 0 16px;
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
  width: 100%;
  color: #444;
  display: inline-block;
  resize: none;
  height: 44px;
  margin: 0 0 40px 0;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.input-container textarea {
  height: 200px;
}

form button {
  font-size: 12px;
  line-height: 12px;
  font-weight: 700;
  padding: 0 30px;
  height: 46px;
  margin-top: -15px;
  text-transform: uppercase;
  color: #fff !important;
  font-weight: 700;
  background-color: #222;
  border: none !important;
  border-radius: 0 !important;
  display: inline !important;
  text-align: center;
  width: auto !important;
  cursor: pointer;
}

.aop-content {
  background-color: white;
  padding-top: 24px;
  padding-bottom: 48px;
  min-height: calc(100vh - 300px);
}

.aop-content h1 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.aop-content img {
  float: right;
  margin-left: 20px;
  width: 300px;
}


blockquote p {
  color: #5badda;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  padding: 10px 0;

}

blockquote {
  border-left: 2px solid #000;
  padding-left: 35px;
  margin: 40px 0;
}

.aop-content li {
  color: #292929;
  font-weight: 400;
}

@media (max-width: 768px) {
  .aop-content {
    padding: 20px;
  }

  .aop-content img,
  .aop-content figure {
    width: 100%;
    margin: 0;
    float: none;
  }

  .home-contact {
    padding: 20px;
  }
}