/* Subpage styling goes here. Excluded on homepage */

/*
SUBPAGE STRUCTURE
BLOG
TEMPLATES
*/

/*******************************************************************************************
SUBPAGE STRUCTURE - Non-critical page features
*******************************************************************************************/

.search-form {
  display: flex;
  position: relative;
}

.search-form button {
  height: 45px;
  width: 45px;
  font-size: 1.1rem;
  padding: 0 12px;
  border-radius: 0;
}

/*******************************************************************************************
BLOG - Posts, search results, and pagination
*******************************************************************************************/

.post {
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--color-gray-500);
}

.post:last-child {
  border: none;
  padding-bottom: 0;
}

.post-head h1 a,
.post-head h2 a {
  color: var(--color-black);
}

.post-head h1,
.post-head h2 {
  font-size: 1.875rem;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  color: var(--color-black);
}

.post-head h1 a:hover,
.post-head h2 a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.post-head,
.post-body {
  margin-bottom: 18px;
}

.post-bottom-share {
  font-size: 1.6rem;
}

.post-body {
  display: block;
}

.post-head-info {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
  margin-bottom: 0;
}

.post-head-info span+span {
  display: none;
}

.post-head-info a {
  text-transform: capitalize;
}

.post-head-info>div:not(:last-of-type)::after {
  font-weight: normal;
  content: "|";
  margin: 0 8px;
}

.post-head-info-authors span:not(:last-child)::after,
.post-head-info-authors a:not(:last-child)::after {
  content: ", ";
}

.post-body-image img {
  aspect-ratio: 747/330;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.post-body-image {
  margin-bottom: 15px;
  width: 100%;
}

img.alignright {
  float: right;
  margin: 0 0 30px 30px;
}

img.alignleft {
  float: left;
  margin: 0 30px 30px 0;
}

.post-body-excerpt p:last-of-type {
  margin-bottom: 0;
}

.post-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BLOG > Blog Grid Style */
.blog-grid .post {
  border: 1px solid var(--color-primary);
  padding-bottom: 0;
}

.blog-grid .post-inner {
  padding: 30px;
}

.post-thumbnail-link {
  transition: opacity 200ms ease-out;
}

.post-thumbnail-link:focus,
.post-thumbnail-link:hover {
  opacity: 0.9;
}

.post-thumbnail-image {
  height: 175px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position-x: 50%;
  background-position-y: 100%;
}

.blog-filters {
  margin-bottom: 40px;
}

.blog-filters-block:not(:last-of-type) {
  margin-bottom: 20px;
}

#blog-grid-pagination {
  margin-top: 50px;
}

.blog-grid .post,
.blog-filters-block {
  max-width: 380px;
}

@media screen and (min-width: 760px) {
  .blog-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
  }

  .blog-filters-block {
    margin-bottom: 0 !important;
    width: 48%;
  }

  .blog-grid .post-inner {
    padding: 40px;
  }

  .blog-grid .post-head-info-authors {
    display: none;
  }

  .blog-grid .post {
    margin-bottom: 30px;
  }
}

@media screen and (min-width: 1025px) {
  .post-thumbnail-image {
    height: 250px;
  }

  .blog-filters {
    justify-content: flex-start;
  }

  .blog-filters-block:not(:last-of-type) {
    margin-right: 30px;
  }
}

/* BLOG > Page Navigation */
.wp-pagenavi {
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
}

.wp-pagenavi a,
.wp-pagenavi span {
  font-weight: 600;
  text-decoration: none;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  margin: 0;
  display: block;
  color: var(--color-black);
  background-color: var(--color-gray-600);
  margin-right: 5px;
}

.wp-pagenavi span.current {
  background: var(--color-primary);
  color: var(--color-white);
}

.wp-pagenavi a:hover,
.wp-pagenavi a:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

.wp-pagenavi span.pages,
.wp-pagenavi span.extend {
  display: none;
}

.wp-pagenavi .nextpostslink,
.wp-pagenavi .previouspostslink,
.wp-pagenavi .first,
.wp-pagenavi .last {
  width: auto;
  color: var(--color-black);
  background-color: var(--color-gray-600);
  padding: 0 15px;
  border-radius: 0;
}

.wp-pagenavi .nextpostslink:hover,
.wp-pagenavi .nextpostslink:focus,
.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .previouspostslink:focus,
.wp-pagenavi .first:hover,
.wp-pagenavi .first:focus,
.wp-pagenavi .last:hover,
.wp-pagenavi .last:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/*******************************************************************************************
TEMPLATES - Pre-built subpages
*******************************************************************************************/

/* TEMPLATES > Attorney Bios */
.content-tabs-anchor-links .content-tabs-row {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 1;
  background: rgba(15, 133, 119, 0.8);
}

.content-tabs-anchor-links .content-tabs-row button {
  background: none;
  color: white;
  min-height: 60px;
  margin: 0;
  position: relative;
  flex: 1;
}

.content-tabs-anchor-links .content-tabs-row button:hover,
.content-tabs-anchor-links .content-tabs-row button:focus {
  background: var(--color-primary);
}

.content-tabs-anchor-links .content-tabs-row button::after {
  position: absolute;
  content: "";
  height: 14px;
  background: var(--color-white);
  right: 0;
  top: calc(50% - 7px);
  width: 1px;
}

.content-tabs-anchor-links .content-tabs-row button i {
  display: none;
}

.content-tabs-anchor-links .content-tabs-row button.active {
  background: var(--color-white);
  color: var(--color-secondary);
}

.content-tabs-anchor-links .content-tabs-row button:hover::after,
.content-tabs-anchor-links .content-tabs-row button:focus::after,
.content-tabs-anchor-links .content-tabs-row button.active::after {
  display: none;
}

/* TEMPLATES > Attorneys Landing */

/* Attorney Boxes */
.attorney-search-inner {
  display: block;
  outline: none;
  transition: filter 300ms ease-out, opacity 100ms ease-out;
}

.attorney-search-inner.search-running {
  filter: blur(12px);
  opacity: 0;
}

.attorney-results {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.attorney-single-box {
  margin-bottom: 30px;
  padding: 0;
  position: relative;
  text-decoration: none;
  max-width: 285px;
  margin: 0 auto 30px;
}

.attorney-results .attorney-single-box {
  width: 100%;
}

.attorney-result-image-container {
  overflow: hidden;
  position: relative;
  background-size: cover;
}

.attorney-result-image-container img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 273/285;
  object-position: center top;
  transition: all 200ms ease-out;
}

.attorney-result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  width: 100%;
  height: 100%;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(158, 23, 30, 0.7);
  transition: all 200ms ease-out;
}

.attorney-single-box:hover .attorney-result-image-container img,
.attorney-single-box:focus .attorney-result-image-container img {
  transform: scale(1.02);
}

.attorney-single-box:hover .attorney-single-box-info:before,
.attorney-single-box:focus .attorney-single-box-info:before {
  width: 50px;
}

.attorney-single-box:hover .attorney-result-overlay,
.attorney-single-box:focus .attorney-result-overlay {
  opacity: 1;
}

.attorney-single-box .attorney-single-box-info {
  padding: 12px 0;
  text-align: center;
}

.attorney-single-box .attorney-single-box-info:before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin: 0 auto 10px auto;
  background: var(--color-primary);
  transition: width 200ms ease-out;
}

.attorney-single-box-info h2,
.attorney-single-box-info p {
  margin: 0;
}

.attorney-single-box h2 {
  font-size: 1.3rem;
}

.attorney-single-box-info p {
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
}

@media screen and (min-width: 650px) {
  .attorney-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 20px;
    grid-column-gap: 20px;
  }

  .attorney-single-box {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 768px) {
  .attorney-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1025px) {
  .attorney-results {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Attorney Rows */
.attorney-single-row {
  display: flex;
  text-align: center;
  flex-direction: column;
  margin-bottom: 40px;
}

.attorney-row-link {
  justify-content: center;
  margin: 0 auto;
  max-width: 280px;
  transition: opacity 200ms ease-out;
}

.attorney-row-link:focus,
.attorney-row-link:hover {
  opacity: 0.9;
}

.attorney-row-info-main {
  padding-top: 20px;
  border-top: 2px solid var(--color-gray);
}

.attorney-row-additional span,
.attorney-row-info-main-contact span {
  display: block;
}

.attorney-single-row i {
  color: var(--color-primary);
}

.attorney-row-additional {
  margin-top: 6px;
}

.attorney-row-info-main-position {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

@media screen and (min-width: 790px) {
  .attorney-results-type-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 20px;
    grid-column-gap: 20px;
  }

  .attorney-single-row {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 900px) {
  .attorney-results.attorney-results-type-row {
    display: block;
  }

  .attorney-single-row {
    flex-direction: row;
    border-bottom: 2px solid var(--color-gray);
    text-align: left;
    margin-bottom: 30px;
  }

  .attorney-row-info-main-position,
  .attorney-single-row:last-of-type,
  .attorney-row-additional,
  .attorney-row-link {
    margin: 0;
  }

  .attorney-row-info {
    display: flex;
    flex: 1;
    padding: 0 0 40px 5vw;
  }

  .attorney-row-info-main {
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    flex: 1;
  }

  .attorney-row-info-main-contact {
    margin-top: 40px;
  }

  .attorney-row-additional {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 50%;
  }
}

/* Attorney Pops */
.attorney-results.attorney-results-type-pop {
  display: block;
}

.attorney-result-pop {
  display: none;
}

.attorney-result-pop-row {
  font-size: 1.1rem;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-gray);
}

.attorney-result-pop-cell {
  flex: 1;
  margin-bottom: 5px;
}

.attorney-result-pop-name {
  flex-basis: 30%;
  width: 30%;
  position: relative;
}

.attorney-result-pop-info {
  margin-left: 40px;
}

.attorney-result-pop-info p {
  margin-bottom: 0;
}

.attorney-result-pop-row i {
  color: var(--color-secondary);
  -webkit-transition: color 200ms ease-out;
  -moz-transition: color 200ms ease-out;
  -ms-transition: color 200ms ease-out;
  -o-transition: color 200ms ease-out;
  transition: color 200ms ease-out;
}

.attorney-result-pop-cell a {
  text-decoration: none;
}

.attorney-result-pop-cell>a {
  color: var(--color-primary);
}

.attorney-result-pop-name:hover>a,
.attorney-result-pop-cell a:hover,
.attorney-result-pop-cell a:focus {
  text-decoration: underline;
  color: var(--color-alternate);
}

.attorney-result-pop-info>a {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.attorney-result-pop-info a {
  color: white;
}

.attorney-result-pop-inner {
  display: flex;
  align-items: center;
}

.attorney-result-pop .attorney-result-pop-image img {
  max-width: 130px;
}

.attorney-result-pop {
  position: absolute;
  top: calc(100% - 115px);
  right: 0;
  padding: 30px;
  z-index: 1;
  background: var(--color-primary);
  height: 200px;
}

.attorney-result-pop-image {
  background: var(--color-gray);
  display: flex;
  flex-direction: column;
}

.attorney-result-pop::before {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 14px 15px 0;
  border-color: transparent var(--color-primary) transparent transparent;
  content: "";
  right: calc(100% - 1px);
  top: calc(50% - 15px);
  position: absolute;
}

.attorney-result-pop-vcard {
  margin-left: auto;
  flex-grow: 0;
}

.attorney-result-pop-vcard a:hover i,
.attorney-result-pop-vcard a:focus i {
  color: var(--color-alternate);
}

.attorney-result-pop-name-link {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 8px;
}

@media screen and (min-width: 900px) {
  .attorney-result-pop-cell {
    margin-bottom: 0;
  }

  .attorney-result-pop-name-link {
    margin-bottom: 0;
    font-size: inherit;
  }

  .attorney-result-pop-row {
    display: flex;
    width: 100%;
  }

  .attorney-result-pop-name:focus-within .attorney-result-pop,
  .attorney-result-pop-name:hover .attorney-result-pop {
    display: block;
    -webkit-animation: fadeInLeftSlight 200ms ease-out;
    animation: fadeInLeftSlight 200ms ease-out;
  }
}

/* TEMPLATES > Attorney Search */
.attorney-search-bar {
  text-align: center;
  margin-bottom: 40px;
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
}

.attorney-search-container-inner {
  padding-top: 40px;
  padding-bottom: 40px;
}

.attorney-search-bar-string span {
  font-weight: 600;
}

.attorney-search-bar-string span:not(:last-of-type)::after {
  margin-right: 5px;
  content: ",";
}

.attorney-search-letters {
  margin-bottom: 40px;
}

.attorney-search-letters-single {
  display: inline-block;
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 0;
  background: none;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
}

#attorney-search-clear {
  display: none;
}

.search-results-displayed #attorney-search-clear {
  display: inline-block;
}

span.attorney-search-letters-single {
  color: var(--color-gray);
  pointer-events: none;
}

@media screen and (min-width: 700px) {
  .attorney-search-form .form-input-row {
    display: flex;
  }

  .form-input-group:first-of-type {
    margin-right: 15px;
  }
}

@media screen and (min-width: 1025px) {
  .attorney-search-letters {
    display: flex;
    justify-content: space-between;
  }
}

/* TEMPLATES > Video Gallery */
.videos-filter {
  margin-bottom: 50px;
}

@media screen and (min-width: 1025px) {
  .videos-filter {
    max-width: 450px;
  }
}

/* TEMPLATES > Contact */
.office-block {
  margin-bottom: 30px;
}

.office-block-image {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position-x: 50%;
}

.office-block-info {
  position: relative;
}

.office-block-info p {
  margin: 0;
}

.office-contact {
  margin-top: 30px;
}

.office-contact p {
  font-weight: 700;
}

.office-block-info-inner {
  width: 100%;
}

.office-contact-map {
  position: absolute;
  right: 0;
  bottom: 0;
}

.office-contact-embed {
  border: 0;
  width: 100%;
  height: 220px;
  display: block;
  margin-top: 30px;
}

.office-block .social-links {
  margin-top: 20px;
}

@media screen and (min-width: 1025px) {
  .office-block {
    display: flex;
    flex-wrap: wrap;
  }

  .office-block-info {
    width: 100%;
  }

  .office-block-image {
    display: flex;
    width: 250px;
    flex-basis: 250px;
    height: 250px;
  }

  .office-block-image+.office-block-info {
    width: calc(100% - 250px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 30px;
  }
}

/* TEMPLATES > Contact Page */
.page-template-template-contact .footer-menu {
  justify-content: center;
}

/* @media screen and (min-width: 768px) {

  .page-template-template-contact .content,
  .page-template-template-contact .sidebar {
    width: 50%;
  }
} */

/* TEMPLATES > Attorney Bios */
.content-tabs-row {
  display: none;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.content-tabs-row-inner {
  display: flex;
}

.content-tabs-row .content-tab-activate {
  margin-right: 10px;
}

.content-tab-activate {
  border-radius: 0;
  flex: 1;
}

.content-tab-activate.active {
  background: var(--color-primary);
  pointer-events: none;
}

.content-tab {
  display: none;
  margin-bottom: 50px;
}

.content-tab.active {
  -webkit-animation: fadeIn 200ms ease-out;
  animation: fadeIn 200ms ease-out;
}

.content-tab.active,
.content-tabs-anchor-links .content-tab {
  display: block;
}

.content-tabs-anchor-links .mobile-tab {
  display: none;
}

.content-tabs-select {
  margin: 0 auto 30px;
  display: none;
}

.content-tabs-anchor-links .content-tabs-select {
  display: block;
}

.mobile-tab {
  width: 100%;
  text-align: left;
  padding: 20px 30px;
  margin-bottom: 20px;
  position: relative;
}

.mobile-tab::after {
  content: "\f0d7";
  font-family: "Font Awesome 6 Pro";
  right: 15px;
  position: absolute;
}

@media screen and (min-width: 1025px) {
  .content-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .content-tabs-row {
    display: block;
  }

  .mobile-tab,
  .content-tabs-anchor-links .content-tabs-select {
    display: none;
  }
}

/* TEMPLATES > Long-Form */
.banner-xl {
  background: rgb(20, 23, 47);
  background: linear-gradient(180deg, rgba(20, 23, 47, 1) 46%, rgba(36, 42, 88, 1) 100%);
  padding: 40px 0;
}

.banner-xl-content p:last-child {
  margin: 0;
}

.banner-xl-image {
  text-align: center;
}

.banner-xl-title {
  font-size: 3.5rem;
  line-height: 1.4;
}

.banner-xl-image img {
  max-width: 70%;
  margin: 0 auto;
}

@media screen and (min-width: 1100px) {
  .banner-xl-inner {
    display: flex;
    align-items: center;
  }

  .banner-xl-content {
    padding-left: 60px;
    flex: 1;
  }
}

.top-table-contents {
  padding: 50px 0;
  background: #e5e8f6;
}

.top-table-contents-button {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  text-decoration: none !important;
  margin: 0 auto;
}

.top-table-contents-button {
  font-size: 1.2rem;
}

.top-table-contents-icon-container {
  margin-bottom: 15px;
}

.top-table-contents-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-row-gap: 20px;
  grid-column-gap: 20px;
}

.top-table-contents-button-icon {
  background: var(--color-secondary);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  transition: all 200ms ease-out;
}

.top-table-contents-button i {
  font-size: 3rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-table-contents-button-icon:hover,
.top-table-contents-button-icon:focus {
  transform: scale(1.03);
  background: var(--color-alternate);
}

.is-sticky .top-table-contents {
  padding: 20px 0;
}

.is-sticky .top-table-contents-button-icon {
  width: 30px;
  height: 30px;
}

.is-sticky .top-table-contents-button i {
  font-size: 1rem;
}

.is-sticky .top-table-contents-icon-container {
  margin: 0 12px 0 0;
}

.is-sticky .top-table-contents-title {
  display: none;
}

.is-sticky .top-table-contents-button {
  flex-direction: row;
  margin: 0 auto 0 0;
}

.single-chapter-banner-title h2 {
  font-size: 2.4rem;
  margin: 0;
}

.single-chapter-banner-image {
  margin-bottom: 20px;
}

.single-chapter:nth-child(2n) {
  background: var(--color-light-gray);
}

.banner-xl {
  padding: 50px 0;
}

.single-chapter-banner {
  background: var(--color-primary);
}

.single-chapter-content,
.single-chapter-banner {
  padding: 30px 0;
}

@media screen and (min-width: 900px) {
  .single-chapter-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
  }

  .single-chapter-banner-image {
    margin-bottom: 0;
    padding-left: 5vw;
  }

  .single-chapter-banner-title h2 {
    margin: 0;
    font-size: 3.2rem;
  }
}

@media screen and (min-width: 1025px) {
  .top-table-contents-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TEMPLATES > Confirmation */
.confirm-contact {
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.confirm-contact a:not(:last-child) {
  margin-right: 20px;
}

.confirm-social {
  margin-bottom: 60px;
}

/* TEMPLATES > Reviews */
.review-social {
  margin: 40px 0;
}

.review-social .social-links {
  max-width: none;
  justify-content: flex-start;
}

.review-social .social-links a {
  font-size: 1.7rem;
  border: 1px solid var(--color-primary);
  background: var(--color-white);
  width: 50px;
  height: 50px;
  margin: 0 15px 0 0;
  transition: all 200ms ease-out;
}

.review-social .social-links a:focus,
.review-social .social-links a:hover {
  opacity: 0.85;
  background: var(--color-light-gray);
}

.review-stars i {
  font-size: 2rem;
  color: var(--color-secondary);
}

/* TEMPLATES > Testimonials */
.content-testimonial-single:not(:last-child) {
  border-bottom: 1px solid var(--color-gray);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.content-testimonial-stars {
  font-size: 1.5rem;
}

.content-testimonial-source {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.content-testimonial-source::before {
  content: "-";
  margin-right: 6px;
  display: inline-block;
}