/**
 * CSS for the practices page
 */


 h4 {
    font-family: "Source Sans Pro";
    line-height: normal;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    margin-top: 1.4em;
}

a, a:link, a:visited {
  font-weight: 600;
}



/* Banner Styles */
.practices-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 450px; /* Deeper than other banners */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    justify-content: space-between;
}

.banner-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
}

.be-logo {
    color: white;
    font-size: 5rem;
    font-weight: bold;
    opacity: 0.8;
    margin-right: 50px;
}

#practice-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    margin-top: 3rem;
}

.practices-banner .practice-name {
    color: white;
    width: 100%;
    text-align: left;
}

.practices-banner .practice-name h1 {
    font-family: "Source Sans Pro";
    line-height: 90px;
    font-weight: 600;
    font-style: normal;
    font-size: 4rem;
    color: white;
    margin: 0;
    padding: 0;
    line-height: normal;
}

#our-law-team {
    padding: 0 5rem;
}

.practices-tabs {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-top: 3px solid rgb(255, 255, 255);
}

.practices-tabs a {
    color: white;
    padding: 0 15px;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.tab-separator {
    color: white;
    opacity: 0.5;
}

.practices-tabs a:hover {
    text-decoration: underline;
}

.practices-tabs a:focus {
    outline: 2px solid white;
    outline-offset: -2px;
}

/* Mobile Navigation */
.practices-mobile-nav {
    display: none;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 10px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle i {
    margin-left: 10px;
}

.practices-mobile-nav-menu {
    display: none;
    background-color: white;
    border: 1px solid #e4e4e4;
}

.practices-mobile-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.practices-mobile-nav-menu li {
    border-bottom: 1px solid #e4e4e4;
}

.practices-mobile-nav-menu li:last-child {
    border-bottom: none;
}

.practices-mobile-nav-menu a {
    display: block;
    padding: 12px 15px;
    color: #495590;
    text-decoration: none;
    font-size: 0.9rem;
}

.practices-mobile-nav-menu a:hover {
    background-color: #f5f5f5;
}

/* Testimonial Slider Styles */
#practicesTestimonialSlider {
    // CSS Grid/Flexbox bug size workaround
    // @see https://github.com/kenwheeler/slick/issues/982
    min-height: 0;
    min-width: 0;
    max-width: 1100px;
    width: 100%;
}

#practicesTestimonialSlider .testimonial {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 1em;
    padding-bottom: 2em;
    color: #495590;
    width: 100%;
}

/* #profesionalTestimonials .swiper {
    max-width: 1200px;
} */


#profesionalTestimonials  .swiper-wrapper{
  max-height: 100%;
  height: 100%;
  width: 100%;
  display: flex;
}

#practicesTestimonialSlider .swiper-slide {
    flex-shrink: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

#practicesTestimonialSlider .swiper-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -45px;
    gap: 10px;
    margin-bottom: 40px;
}

#practicesTestimonialSlider .swiper-pagination {
    position: relative;
    margin: 0;
    padding: 0;
    width: auto;
    display: flex;
}

.swiper-pagingation-flex {
    display: flex;
    align-items: center;
}

.swiper-button-prev-sm,
.swiper-button-next-sm {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.swiper-pagingation-flex svg {
    fill: #9e1c30;
    width: 25px;
}

#practicesTestimonialSlider .swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 0 !important;
}

#practicesTestimonialSlider .swiper-pagination-bullet-active {
    background: #9e1c30 !important;
}

#practicesTestimonialSlider .swiper-button-next:after,
#practicesTestimonialSlider .swiper-button-prev:after {
    font-size: 1.8em !important;
}

#practicesTestimonialSlider .swiper-button-next,
#practicesTestimonialSlider .swiper-button-prev {
    margin-top: -40px; !important;
}

#practicesTestimonialSlider blockquote {
    padding-left: 25px;
    padding-bottom: 11px;
    padding-top: 10px;
    padding-right: 21px;
    position: relative;
    width: 100%;
    display: block;
    white-space: pre-wrap;
    word-break: keep-all;
    font-size: 2em;
    font-weight: normal;
    line-height: 1.3;
}

#practicesTestimonialSlider blockquote:before {
    content: '';
    content: none;
}

#practicesTestimonialSlider cite {
    font-size: 1.2em;
    font-weight: bold;
    line-height: normal;
    margin-left: 25px;
}

#practicesTestimonialSlider p {
    font-size: 1em !important;
    font-weight: normal;
    line-height: normal;
    margin-left: 20px;
    font-style: italic;
    margin-top: 5px;
}

.read-all-button {
    display: flex;
    align-items: center;
    position: relative;
    /* color: #9e1c30; */
    cursor: pointer;
    width: auto;
    margin-left: 0;
    transition: all 0.3s ease;
}

.read-all-button:hover {
    margin-left: 10px;
}

.read-all-button > span:first-child {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    padding: 2px 3px;
    border-radius: 4px;
    color: #9e1c30;
    margin-right: 14px;
    background-color: transparent;
    font-weight: 900;
}

.read-all-button .circle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    position: relative;
}

.read-all-button .circle-arrow svg {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 1;
}

.read-all-button .circle-arrow .circle-path {
    transition: fill 0.3s ease;
}

.read-all-button .circle-arrow .arrow-path {
    transition: fill 0.3s ease;
    position: relative;
    z-index: 2;
}

.read-all-button .circle-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #9e1c30;
    border-radius: 50%;
    transform: translate(-56%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.read-all-button:hover .circle-arrow::before {
    width: 100%;
    height: 100%;
}

.read-all-button:hover .circle-arrow .circle-path {
    fill: #9e1c30;
}

.read-all-button:hover .circle-arrow .arrow-path {
    fill: #ffffff;
}

.read-all-button:hover > span:first-child {
    position: relative;
    z-index: 1;
}

/* Areas of Focus Styles */
.areas-of-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 30px;
}

.focus-tile {
    border: 1px solid #e4e4e4;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3; 
    background-position: center;
    background-size: cover;
}

.focus-tile:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.focus-content-wrapper {
    display: flex;
    gap: 0;
    flex-direction: column;
    position: relative;
    justify-content: flex-end;
    height: 100%;
}

.focus-content-wrapper h2 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.5em !important;
}

.focus-tile .focus-tile-content {
    position: relative;
    transition: max-height 1s ease-in-out;
    background-color: #ffffff;
    padding: 0 10px;
    max-height: 0;
    overflow: hidden;
}

.focus-tile:hover .focus-tile-content {
    max-height: 1000px;
}

.focus-tile:focus-within {
    outline: 2px solid #495590;
}

.focus-tile h3 {
    transition: all 0.3s ease;
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 10px;
    background-color: #ffffff;
    padding: 10px;
    width: 100%;
    margin: 0;
    line-height: normal;
}

#practice-content .focus-tile p {
    font-size: .8rem !important;
    margin-bottom: 10px;
    line-height: normal !important;
}

.focus-tile .read-more {
    color: #9e1c30;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.gform_title {
    padding-left: 10px;
    border-left: 4px solid #9e1c30;
    color: black;
}





/* Team Member Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 30px;
}

.team-card {
    border: 1px solid #e4e4e4;
    padding: 15px;
}

.team-card img {
    width: 100%;
    height: auto;
}

.team-card h3 {
    color: #495590;
    font-size: 1.1rem;
    margin: 10px 0 5px;
}

.team-card h4 {
    font-size: 0.9rem;
    margin: 0 0 10px;
    font-weight: normal;
}

.team-card p {
    font-size: 0.8rem;
    margin: 0;
}

.team-card:focus-within {
    outline: 2px solid #495590;
}

/* Section Styles */
section {
    margin-bottom: 25px;
}

section h2 {
    color: #495590;
    text-transform: uppercase;
    font-size: 1.5rem !important;
    margin-bottom: 0;
}

/* Popup Styles */
.testimonial-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.testimonial-popup .testimonial blockquote::before {
    content: '';
    content: none;
}

.testimonial-popup.active {
    opacity: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* Ensure focus-area popup behaves correctly */
#focus-area-popup {
    display: none;
}

#focus-area-popup.active {
    opacity: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.testimonial-popup .testimonial-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 140px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.testimonial-popup .testimonial-header img {
    height: 100%;
}

.testimonial-popup h2 {
    color: #495590;
    font-size: 1.5rem !important;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.testimonial-popup-content {
    position: fixed;
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-color: #9e1c30;
    border-width: 5px;
    border-style: solid;
    border-radius: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.testimonial-popup.active .testimonial-popup-content {
    transform: translateY(0);
    opacity: 1;
}

.testimonial-popup .testimonial-popup-content {
    opacity: 0;
}

.testimonial-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #495590;
}

.testimonial-popup-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(83, 83, 83);
}

.testimonial-popup-item:last-child {
    border-bottom: none;
}


#practice-content {
    display: flex;
    width: 100%;
}

#practice-content .left-content {
    flex: 1;
    padding: 0 4em;
    width: calc(100% - 350px);
}

#practice-content .sidebar {
    padding: 20px 25px;
    width: 350px;
}

/* Hidden Content Styles */
.hidden-content {
    display: none;
    overflow: hidden;
}

.show-more-button-wrapper {
    bottom: 0px;
    display: flex;
    width: 100%;
    justify-content: center;
    background: #e4e4e4;
    height: 1px;
    margin: 35px 0;
}

.show-more-button {
    background: white;
    border: none;
    color: #495590;
    transition: all .25s ease-in-out;
    border-radius: 10px;
    padding: 8px 15px;
    height: 40px;
    margin-top: -20px;
    text-transform: uppercase;
}

.show-more-button:hover {
    background: #495590;
    color: white;
}

/* Chair Section Styles */
.chair-section {
    display: flex;
    margin-top: 30px;
}

.chair-photo {
    flex: 0 0 200px;
    margin-right: 30px;
}

.chair-photo img {
    width: 100%;
    height: auto;
}

.chair-photo-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.chair-info {
    flex: 1;
}

.chair-info h3 {
    color: #495590;
    font-size: 1.3rem;
    margin: 0 0 5px;
}

.chair-info h4 {
    font-size: 1.1rem;
    margin: 0 0 15px;
    font-weight: normal;
}

.chair-info p {
    margin: 0 0 5px;
}

.view-team-button {
    display: inline-block;
    background-color: #495590;
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1.2;
    padding: 22px 30px;
    text-align: center;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    width: 100%;
    margin: 10px 0px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.view-team-button:hover {
    background-image: linear-gradient(to right, #495590,rgb(38, 43, 66)) !important;
    background-color: #3a4370;
    text-decoration: none;
    color: white;
    border: 2px solid #3a4370;
}


/* Related Industries Styles */
.related-industries-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.related-industries-list li {
    margin-bottom: 10px;
    background-color: #f5f5f5;
    border-left: 4px solid #495590;
    display: flex;
    gap: 10px;
}

.related-industries-list div {
    padding: 10px;
    flex: 1;
}

.related-industries-list a {
    color: #495590;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    display: block;
}

#practice-content .related-industries-list p {
    margin-bottom: 10px;
    font-size: 1rem !important;
    font-weight: 600;
}

.related-industries-list img {
    object-fit: cover;
}

.related-industries-list a:hover {
    text-decoration: underline;
}

/* Representative Experience Styles */
.representative-experience-section {
    margin-top: 30px;
}

.experience-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4e4e4;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h3 {
    color: #495590;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.experience-description p {
    margin-bottom: 10px;
}

/* Awards Styles */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.awards-grid-item {
    text-align: center;
}

.awards-grid-item img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

#practice-content .award-title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    font-weight: 600;
    margin: 0 0 5px;
    color: #495590;
}

#practice-content .award-subtitle {
    font-size: 0.9rem !important;
    margin: 0 0 5px;
    font-weight: 600;
}

#practice-content .award-years {
    font-size: 0.8rem !important;
    margin: 0;
    font-weight: 600;
    color: #666;
}

#insights {
    margin-top: 2em;
}

#insights .insights-actions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}


#insights .grid.grid-insights {
    grid-template-rows: auto !important;
    height: auto;
    margin-left: -20px;
    margin-right: -20px;
}

#insights .grid .grid-item-content h3 {
    font-size: 1.1em !important;
}

#insights .grid-item.insights {
    padding: 1em 0.7em !important;
    position: relative;
    padding: 20px !important;
    border-bottom: none !important;
}

#insights .grid .grid-item-content {
    bottom: auto;
    top: 40px;
} 

#insights .grid-item-content h2 {
    color: white;
    font-weight: 200;
    font-size: 1.2em !important;
}

#insights .grid.grid-insights .grid-item:first-child,
#insights .grid.grid-insights .grid-item:nth-child(2),
#insights .grid.grid-insights .grid-item:nth-child(3),
#insights .grid.grid-insights .grid-item:nth-child(4),
#insights .grid.grid-insights .grid-item {
		max-height: 300px;
		grid-column: auto;
		grid-row: auto;
		width: 100%;
    	height: 40VH;
	}

/* View All Button Styles */
.view-all-insights,
.view-all-team {
    text-align: center;
    margin-top: 30px;
}

.view-all-button {
    display: inline-block;
    background-color: #495590;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.view-all-button:hover {
    background-color: #3a4370;
    text-decoration: none;
    color: white;
}

.author img {
    width: 40%;
}

#authors .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 10px;
}

.author {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    margin: 0 0;
    background-color: #e8eaec;
}

.content-section  {
    margin-bottom: 25px;
}

.content-section-header h2,
section h2 {
    color: #495590;
    font-size: 42px !important;
    margin-bottom: 15px;
    font-weight: 400;
    font-family: "Source Sans Pro", sans-serif;
    text-transform: none;
    line-height: 1.1 !important;
}

#representative-experience li {
    margin-bottom: 10px;
}

#professionalTopNav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    background: white;
    z-index: 999;
}

#professionalTopNav.shown {
    filter: drop-shadow(0px 2px 5px #d1d1d1);
}

.admin-bar #professionalTopNav {
    margin-top: 32px;
}

#professionalTopNav .prof-top-nav-wrapper {
    display: flex;
    justify-content: space-between;
    height: 6rem;
    margin-top: -7rem;
    width: 100%;
    max-width: 1200px;
    transition: all .25s ease-in-out;
}

#professionalTopNav.shown .prof-top-nav-wrapper {
    margin-top: 0;
    background: white;
}

#professionalTopNav .prof-top-contact-img {
    display: flex;
    justify-content: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    padding-top: 5px;
}


#professionalTopNav .prof-top-contact-img img {
    display: block;
    object-fit: cover;
    width: 350px;
    height: 145px;
}

#professionalTopNav .prof-top-contact {
    display: flex;
    align-items: center;
    height: 100%;
}

#professionalTopNav .prof-top-contact-info {
    padding-left: 20px;
}

#professionalTopNav .prof-top-contact p {
    margin: 0;
    padding: 0;
}

#professionalTopNav .prof-top-contact p:first-child {
    font-weight: bold;
}

#professionalTopNav .prof-top-nav {
    display: flex;
    align-items: center;
}

#professionalTopNav .prof-top-nav-mobile {
        display: none;
}

#professionalTopNav .prof-top-nav-mobile button {
    border: none;
    background: white;
}

.prof-top-nav .practice-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: space-between;
    gap: 20px;
}

.prof-top-nav .practice-tabs a {
    font-size: 1.2em;
    font-weight: 500;
    white-space:nowrap;
    text-transform: uppercase;
}

.responsive-iframe-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

#practice-videos .videos-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto;
    column-gap: 20px;
    row-gap: 20px;
}

/* Single video full width layout */
#practice-videos .videos-grid.single-video {
    grid-template-columns: 1fr;
    max-width: 800px;
}

#practice-videos .videos-grid-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#practice-videos .videos-grid-item-title {
    width: 100%;
    display: flex;
    align-items: flex-end;
}

#practice-videos .videos-grid-item-content,
#practice-videos .videos-grid-item-content iframe {
    width: 100%;
}

@media only screen and (max-width: 800px) {
    .admin-bar #professionalTopNav {
        margin-top: 0;
    }
    #professionalTopNav .prof-top-contact-img {
        display: none;
    }
    #professionalTopNav .prof-top-nav {
        display: none;
    }
    #professionalTopNav .prof-top-nav-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        position: relative;
        padding-right: 20px;
        width: 100%;
    }
    #professionalTopNav .drop-menu-wrapper {
        height: 0;
        overflow: hidden;
    }

    #professionalTopNav .drop-menu-wrapper .drop-menu {
        margin-top: -100%;
        transition: all .25s ease-in-out;
    }

    #professionalTopNav .drop-menu-wrapper .drop-menu ul {
        list-style: none;
    }
    #professionalTopNav .drop-menu-wrapper .drop-menu li {
        list-style: none;
        padding: 10px 10px;
    }

    #professionalTopNav .drop-menu-wrapper.open {
        overflow: visible;
        bottom: 0;
        z-index: -1;

    }

    #professionalTopNav .drop-menu-wrapper.open .drop-menu {
        margin-top: 35px;
        background: white;
    }
}

@media (max-width: 1369px) {
    #authors .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .areas-of-focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
    }
    .focus-tile h3 {
        font-size: 1em !important;
    }

    #practice-content .focus-tile p {
        font-size: .8em !important;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .areas-of-focus-grid,
    #authors .team-grid,
    #insights .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #authors .team-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .practices-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px 10px;
    }
    
    .practices-tabs a {
        white-space: nowrap;
    }
    
    .chair-section {
        flex-direction: column;
    }
    
    .chair-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .banner-content {
        padding: 0 20px;
    }
    
    .be-logo {
        font-size: 4rem;
        margin-right: 30px;
    }
    
    .practices-banner .practice-name h1 {
        font-size: 3rem;
    }

    #practice-videos .videos-grid {
        display: block;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto;
        column-gap: 20px;
        row-gap: 20px;
    }
}

#practice-content p,
#practice-content li {
    font-size: 20px !important;
    line-height: 30px;
    font-weight: 100;
}

#practicesTestimonialSlider .testimonial p {
    font-size: 1em !important;
    font-weight: normal;
    line-height: normal;
    font-style: italic;
    margin-top: 5px;
}

#insights {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5rem;
    margin-top: 3em;
}

@media (max-width: 768px) {

    .view-team-button {
        display: none;
    }

    #our-law-team {
        padding: 1rem;
    }

    .testimonial p {
        font-size: 1em !important;
        margin-left: 0 !important;
    }

    #practicesTestimonialSlider .testimonial blockquote {
        font-size: 1.6em !important;
    }

    #our-law-team #authors {
        align-items: center;
    }

    #our-law-team #authors .author {
        flex-direction: column;
        height: auto;
    }

    #our-law-team .author img {
        width: 90%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .areas-of-focus-grid,
    #authors .team-grid,
    #insights .insights-grid {
        grid-template-columns: 1fr !important;
    }

    #practice-content {
        flex-direction: column;
        padding: 0;
    }

    #practice-content .left-content {
        padding: 0 .5em !important;
        width: 100%;
    }
    
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .practices-banner {
        height: 250px;
    }
    
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    
    .be-logo {
        font-size: 3rem;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .practices-banner .practice-name h1 {
        font-size: 2.5rem;
    }
    
    .practices-tabs {
        display: none;
    }
    
    .practices-mobile-nav {
        display: block;
        position: relative;
        border-top: 1px solid white;
    }
    
    .mobile-menu-toggle {
        display: block;
        width: 100%;
        padding: 10px 15px;
        color: white;
        text-align: center;
        font-size: 1rem;
        border: none;
        cursor: pointer;
    }
    
    .practices-mobile-nav-menu {
        display: none;
        position: absolute;
        width: 100%;
        background-color: white;
        border: 1px solid #e4e4e4;
        z-index: 100;
    }
    
    .practices-mobile-nav-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .practices-mobile-nav-menu li {
        border-bottom: 1px solid #e4e4e4;
    }
    
    .practices-mobile-nav-menu li:last-child {
        border-bottom: none;
    }
    
    .practices-mobile-nav-menu a {
        display: block;
        padding: 10px 15px;
        color: #495590;
        text-decoration: none;
    }

    #profesionalTestimonials .testimonial {
        padding: 0 1em;

    }
    
    #profesionalTestimonials blockquote {
        padding-left: 26px;
        font-size: 1.6em;
        padding-right: 0;
    }
    
    #profesionalTestimonials cite {
        margin-left: 0;
    }
    
    #profesionalTestimonials p {
        margin-left: 0;
    }
    
    .read-all-button {
        margin-left: 0;
    }

    #insights {
        padding: 0 2em;
    }

    #insights .grid.grid-insights {
        display: flex;
        flex-direction: column;
    }
}

/* Testimonial Sidebar Styles */
.testimonial-sidebar {
    margin-top: 2em;
    overflow: hidden;
}

.testimonial-sidebar-header {
    background-color: #495590;
    padding: 15px;
    position: relative;
    text-align: center;
}

.testimonial-sidebar-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.testimonial-sidebar-header::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/themes/solicitor-child/img/cursor-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: none; /* Hide icons as they're not in the design */
}

.testimonial-sidebar-header::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/themes/solicitor-child/img/magnifying-glass-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: none; /* Hide icons as they're not in the design */
}

.testimonial-sidebar-content {
    background-color: #f5f5f5;
    padding-top: 15px;
}

.testimonial-sidebar-item {
    margin: 0 15px;
    padding-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d7d6d6;
}

.testimonial-sidebar-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.testimonial-sidebar-item blockquote {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
    padding: 0;
    font-style: italic;
    font-weight: 900;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.testimonial-sidebar-item blockquote::before {
    content: none; /* Remove default quote marks */
}

.testimonial-sidebar-item cite {
    font-size: 0.9rem;
    color: #495590;
    font-weight: 600;
    font-style: normal;
    display: block;
    text-align: right;
}

.testimonial-sidebar-footer {
    padding: 30px 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 6px solid #ffffff;
}

.read-all-testimonials {
    display: flex;
    align-items: center;
    color: #9e1c30;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 15px;
    position: relative;
}

.read-all-testimonials span:first-child {
    margin-right: 10px;
    background-color: transparent;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    padding: 2px 3px;
}

.read-all-testimonials .circle-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #9e1c30;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-all-testimonials .circle-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #9e1c30;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.read-all-testimonials:hover .circle-arrow::before {
    width: 100%;
    height: 100%;
}

.read-all-testimonials .circle-arrow {
    color: #9e1c30;
}

.read-all-testimonials .circle-arrow span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.read-all-testimonials:hover .circle-arrow span {
    color: white;
}

.read-all-testimonials:hover span:first-child {
    color: #9e1c30;
}

.testimonial-disclaimer {
    font-size: 0.8rem !important;
    color: #666;
    text-align: center;
    margin: 0;
    font-style: italic;
    line-height: 1.3;
    margin-top: 10px;
}
