/*
 Theme Name:   My Listing Child
 Theme URI:    http://mylisting.27collective.net/my-city/
 Description:  MyListing Child Theme
 Author:       27collective
 Author URI:   https://27collective.net/
 Template:     my-listing
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  my-listing-child
*/


.quick-listing-actions {
    margin-top: 0px!important;
    margin-bottom: 35px;
    position: relative;
}

/* --- HERO / MAIN PANEL --- */
.firm-main-panel {
    background: #fff;
}

.firm-main-panel .row {
    min-height: 420px;
}

/* Left: Text Content */
.firm-hero-content {
    padding: 50px 60px;
    padding-top:10px
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    background: #fff;
}

.firm-title {
    font-size: 2.6rem;
    font-weight: 300;
    color: #1a2332;
    margin-bottom: 20px;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.2;
}

/* Detail List (card-style, bordered items) */
.firm-detail-list {
    margin-bottom: 25px;
}

.firm-detail-item {
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: .625rem;
}

.firm-detail-item:first-child {
    padding-top: 0;
}

.firm-detail-label {
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    margin-top: 0;
}

.firm-detail-item p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

.firm-detail-item a, .lawyer-a {
    color: var(--accent) !important;
    text-decoration: none;
}

.firm-detail-item a:hover, .lawyer-a:hover {
    text-decoration: underline;
}

.firm-jump-link {
    color: #2a7d4f;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.firm-jump-link:hover {
    text-decoration: underline;
    color: #1e5e3b;
}

.firm-jump-link i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Right: Firm Logo Section */
.firm-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 1;
    background-color: var(--accent);
    position: relative;
}

.firm-logo-img {
    width: 100%;
    max-width: 33.75rem;
    max-height: 10rem;
    object-fit: contain;
    display: block;
}



/* --- wp-rich-section (white bg) --- */
.wp-rich-section {
    padding-top: 40px;
}

.wp-rich-text {
    position: relative;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.wp-rich-text.expanded {
    max-height: none;
}

.wp-rich-text-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.wp-rich-text-body p {
    margin-bottom: 15px;
}

.wp-rich-text-body strong {
    color: #1a2332;
}

.wp-rich-text-body ul {
    padding-left: 20px;
}

.wp-rich-text-body li {
    margin-bottom: 4px;
}

.wp-rich-text-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wp-rich-text.expanded .wp-rich-text-gradient {
    opacity: 0;
}

.wp-rich-read-more-btn {
    background: transparent;
    border: 2px solid #555;
    color: #333;
    padding: 8px 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: all 0.2s;
    margin-top: 15px;
}

.wp-rich-read-more-btn:hover {
    background: #333;
    color: #fff;
}

.social-nav>li {
    display:inline-block;
        margin-bottom: 0!important;
}
.social-nav>li>a:hover {
       text-decoration: none!important;
}

.lf-item.lf-item-lawyer-view {
    height: auto !important;
}


.lf-item.lf-item-lawyer-view .lf-item-info{
    min-height: 165px!important;
}

.lf-item.lf-item-lawyer-view .lf-item-info {
    position: static;
    background: #fff;
    padding: 30px 15px 15px 165px;
}

.lf-item.lf-item-lawyer-view .lawyer-photo {
    background-color: #ebebeb;
    border-radius: 50%;
    -webkit-box-shadow: none;
    box-shadow: none;
    overflow: hidden;
    padding: 5px;
    border: none;
    position: absolute;
    display: block;
    transform: none;
    top: 15px;
    left: 15px;
}

.lf-item.lf-item-lawyer-view .lawyer-photo-img {
    border-radius: 50%;
    -webkit-box-shadow: none;
    box-shadow: none;
    overflow: hidden;
    filter: grayscale(100%);
    max-width: 125px;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .firm-hero-content {
        padding: 35px 25px;
    }

    .firm-title {
        font-size: 2rem;
    }

    .firm-main-panel .row {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .firm-hero-content {
        padding: 25px 15px;
    }

    .firm-title {
        font-size: 1.6rem;
    }
}




/* =============================================
   LAWYER PAGE STYLES
   ============================================= */
.lawyer-page-element {
    padding-top:50px;
    padding-bottom:50px;
}

.lawyer-page .lawyer-photo-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ebebeb;
    padding: 8px;
}

.lawyer-page  .lawyer-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
}

.lawyer-page  .lawyer-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #d0d0d0;
}


.lawyer-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lawyer-name-info {
    flex: 1;
}

.lawyer-name {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1.2;
    margin-top: 0px;
}

.lawyer-title {
    font-size: 1.4rem;
    font-weight: 300;
    color: #333;
    margin: 0;
}

.lawyer-firm-logo {
    display: inline-block;
}

.lawyer-firm-logo-img {
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
}

/* --- PROFILE SECTION --- */
.lawyer-profile-section {
    background: #fff;
    padding: 10px 0;
}

.lawyer-section-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

/* --- PROFILE GRID --- */
.lawyer-profile-grid .grid-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    word-break: break-word;
}

.lawyer-profile-grid .grid-row:last-child {
    border-bottom: 2px solid var(--accent);
}

.lawyer-profile-grid .grid-col {
    flex: 1;
    padding: 0 15px;
    min-width: 0;
}

.lawyer-profile-grid .grid-col:first-child {
    padding-left: 0;
}

.lawyer-profile-grid .grid-col:last-child {
    padding-right: 0;
}

.lawyer-profile-grid .grid-col--wide {
    flex: 2;
}

.lawyer-profile-grid h4 {
    font-weight:500;
    font-size: 0.9rem;
    color: #333;
    margin: 0 0 8px 0;
}

.lawyer-profile-grid p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

.lawyer-profile-grid a {
    color: var(--accent);
    text-decoration: none;
}

.lawyer-profile-grid a:hover {
    text-decoration: underline;
}

.social-nav {
    margin-bottom: 0!important;
}
.social-nav>li {
    display:inline-block;
    margin-bottom: 0!important;
}
.social-nav>li>a:hover {
       text-decoration: none!important;
}


/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .lawyer-page  .lawyer-photo-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        margin-bottom: 25px;
    }

    .lawyer-page  .lawyer-name-row {
        padding-left: 0;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
        display: block;
    }


    .lawyer-title {
        font-size: 1.1rem;
    }

    .lawyer-firm-logo {
        margin-top: 20px;
    }

    .lawyer-profile-grid .grid-col,
    .lawyer-profile-grid .grid-col--wide {
        flex: 0 0 50%;
        padding: 0 10px 15px 0;
    }
}

@media (max-width: 575px) {
    .lawyer-page  .lawyer-photo-wrapper {
        width: 160px;
        height: 160px;
    }

  
    .lawyer-profile-grid .grid-col,
    .lawyer-profile-grid .grid-col--wide {
        flex: 0 0 100%;
        padding: 0 0 15px 0;
    }
}



.bg-transparent {
    background: transparent!important;
}

.bs-none {
    box-shadow: none!important
}

.profile-header-element {
    padding: 0px;
}

@media (min-width: 992px) and (max-width: 1200px) {
    #listing_tab_lawyers  .col-md-4{
        width: 50%;
    }
 
}


@media (max-width: 1200px) {
   .profile-header-element {
       padding: 0px 15px;
    }
}
