/* Lawyer Profile Card Styles */

.lawprof-profile-card {
    width: 100%;
    max-width: 320px;
    height: 600px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto;
}

.lawprof-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.lawprof-card-front,
.lawprof-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.4s ease-in-out;
}

.lawprof-card-front {
    background: linear-gradient(135deg, #d4b5a0 0%, #c9a88f 100%);
    z-index: 1;
    transform: translateY(0);
    border-radius: 15px;
}

.lawprof-card-back {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    z-index: 2;
    transform: translateY(100%);
    border-radius: 15px;
}

/* Hover effect - slide up from bottom */
.lawprof-profile-card:hover .lawprof-card-back {
    transform: translateY(0);
}

.lawprof-profile-image-section {
    height: 65%;
    position: relative;
    overflow: hidden;
}

.lawprof-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawprof-profile-content {
    height: 35%;
    background: #b8b8b8;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.lawprof-profile-name {
    font-size: 24px;
    font-weight: 900;
    color: #2c2c2c;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.lawprof-profile-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.lawprof-contact-info {
    width: 100%;
    margin-bottom: 15px;
}

.lawprof-contact-item {
    margin-bottom: 5px;
    color: #2c2c2c;
    font-size: 14px;
    font-weight: 600;
}

.lawprof-book-btn {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.lawprof-book-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lawprof-press-text-back {
    display: none;
}

.lawprof-back-content {
    height: 100%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;
    z-index: 1;
}

.lawprof-description-section {
    margin-bottom: 20px;
}

.lawprof-section-title {
    font-size: 20px;
    font-weight: 900;
    color: #2c2c2c;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.lawprof-description-text {
    font-size: 13px;
    line-height: 1.5;
    color: #3a3a3a;
    margin-bottom: 15px;
}

.lawprof-tags-section {
    margin-bottom: 20px;
}

.lawprof-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.lawprof-tag {
    background: #2c2c2c;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.lawprof-tag-more {
    background: #4a4a4a;
    cursor: pointer;
}

.lawprof-tag-more:hover {
    background: #5a5a5a;
}

.lawprof-contact-section {
    margin-bottom: 20px;
}

.lawprof-contact-item-back {
    margin-bottom: 8px;
    color: #2c2c2c;
    font-size: 14px;
    font-weight: 600;
}

.lawprof-book-btn-back {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.lawprof-book-btn-back:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lawprof-profile-card {
        height: 550px;
    }
    
    .lawprof-profile-name {
        font-size: 24px;
    }
    
    .lawprof-back-content {
        padding: 30px 25px;
    }
    
    .lawprof-section-title {
        font-size: 20px;
    }
}
