body {
    background-color: #EBE8E4;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    justify-content: center;
}

.practice-detail {
    width: 80%;
    padding:  80px 0 15px 0;
    margin: 150px auto 0 auto;
}
@media (min-width: 390px) and (max-width: 430px){
    .practice-detail {
        width: 100%;
        padding:  80px 15px 15px 15px;
        margin: 150px auto 0 auto;
        margin:auto;
    }
}


.post-head .title {
    font-weight: 300;
    font-size: 4rem;
    color: black;
}

.post-head hr {
    border-color: grey;
    padding-bottom: 30px;
    width: 40%;
}

@media(max-width:500px) {
    .post-head hr {
        width: 80%;
    }
}

.practice-content {
    padding: 20px;
}

.practice-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #54504E;
    text-align: justify;
}

.practice-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.practice-banner h2 {
    color: white !important;
    font-size: 3rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(84, 80, 78, 0.2);
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: #54504E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-area {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.service-area li {
    display: flex;
    margin-bottom: 20px;
}

.service-area .icon-container {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-area .content-container {
    display: flex;
    align-items: center;
}

.service-area h5 {
    color: #54504E;
    margin-bottom: 0;
    font-weight: 500;
}

.service-area p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #54504E;
}

.justified-text-container p {
    text-align: justify !important;
}

.sidebar {
    margin-top: 20px;
    padding: 20px;
}

.sidebar-contact {
    background-color: #54504E;
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: rgba(50, 50, 80, 0.5) 0px 4vw 8vw -2vw, rgba(0, 0, 0, 0.8) 0px 4vw 5vw -3vw;
}

.sidebar-contact h5 {
    font-weight: 500;
    margin-bottom: 15px;
}

.sidebar-contact .btn-1 {
    background-color: #EBE8E4;
    color: #54504E;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-contact .btn-1:hover {
    background-color: #dcd9d5;
    transform: translateY(-2px);
}

.related-services {
    background-color: white;
    border-radius: 10px;
    box-shadow: rgba(50, 50, 80, 0.2) 0px 4vw 8vw -2vw, rgba(0, 0, 0, 0.1) 0px 4vw 5vw -3vw;
}

.related-services h5 {
    font-weight: 500;
    color: #54504E;
    margin-bottom: 15px;
}

.related-services ul li {
    margin-bottom: 10px;
}

.related-services ul li a {
    color: #54504E;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-services ul li a:hover {
    color: #333;
    text-decoration: underline;
}

/* Real Estate specific background */
.real-estate-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../images/conveyancing-real-estate.jpg');
}

/* Corporate Commercial specific background */
.corporate-commercial-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../images/corporate-commercial.jpg');
}

/* Litigation & Dispute Resolution specific background */
.litigation-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../images/divorce2.png');
}

@media(max-width: 768px) {
    .practice-banner {
        height: 200px;
    }
    
    .practice-banner h2 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
} 