/* Attorney Archive Cards - Redesigned Layout */
.aah-attorney-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.aah-attorney-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Favorite Button */
.aah-card-favorite-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;

}

.aah-card-favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aah-card-favorite-btn svg {
    width: 20px;
    height: 20px;
    color: #999;
    transition: color 0.2s ease;
}

.aah-card-favorite-btn.active svg {
    color: #e74c3c;
    fill: #e74c3c;
}

.aah-card-favorite-btn:hover svg {
    color: #e74c3c;
}

/* Image Section */
.aah-card-image-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    border-radius: 20px;
}

.aah-attorney-image {
    width: 100%;
    display: block;
    line-height: 0;
}

.aah-card-image {
    width: 100%;
    height: 340px !important;
    display: block;
    object-fit: cover;
}

/* Content Section */
.aah-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.aah-attorney-name {
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.aah-attorney-name a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    display: block;
    transition: color 0.2s;
    line-height: 22px;
}

.aah-attorney-name a:hover {
    color: #c6902e;
}

/* States and Practice Areas */
.aah-card-info {
    margin-bottom: 20px;
    flex: 1;
}

.aah-card-states,
.aah-card-practice-areas {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.aah-card-states:last-child,
.aah-card-practice-areas:last-child {
    margin-bottom: 0;
}

.aah-info-icon {
    width: 16px;
    height: 16px;
    color: #c6902e;
    flex-shrink: 0;
    margin-top: 2px;
}

.aah-info-text {
    flex: 1;
    line-height: 1.6;
}

.aah-more {
    color: #999;
    font-weight: 500;
}

/* Footer: Button (80%) + Review (20%) */
.aah-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* View Profile Button - 80% width */
.aah-view-profile-btn {
    flex: 0 0 75%;
    padding: 12px 16px;
    background: #c6902e;
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    border-radius: 100px;
}

.aah-view-profile-btn:hover {
    background: #a3751f;
    color: #fff;
}

/* Review Section - 20% width */
.aah-card-review {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.aah-review-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.aah-review-rating svg {
    width: 20px;
    height: 20px;
    transition: color 0.2s, fill 0.2s;
}

.aah-review-rating.has-rating svg {
    color: #fbbf24;
    fill: #fbbf24;
}

.aah-review-rating.no-rating svg {
    color: #d1d5db;
    fill: #d1d5db;
}

.aah-rating-value {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
}

.aah-review-count {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .aah-card-content {
        padding: 16px;
    }
    
    .aah-attorney-name a {
        font-size: 20px;
    }
    
    .aah-card-states,
    .aah-card-practice-areas {
        font-size: 13px;
    }
    
    .aah-card-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .aah-view-profile-btn {
        flex: 1;
        width: 100%;
    }
    
    .aah-card-review {
        flex: 1;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .aah-review-rating {
        margin-bottom: 0;
    }
}
