/* Стили для плашки отзыва эксперта */
.expert-review-plaque {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 600px; /* Максимальная ширина для десктопа */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px; /* Отступ снизу, если плашек несколько */
}

.expert-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover; /* Чтобы изображение хорошо вписывалось */
    margin-right: 15px;
    flex-shrink: 0; /* Предотвращает сжатие аватара */
}

.expert-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expert-info .expert-name {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 2px 0;
}

.expert-info .expert-title {
    font-size: 14px;
    color: #555555;
    margin: 0;
}

.expert-review-body .review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444444;
    margin: 0;
    font-style: italic;
}

.expert-review-body .review-text::before {
    content: "“";
    font-size: 24px;
    font-weight: bold;
    color: #007bff; /* Цвет кавычек, можно изменить */
    margin-right: 2px;
}

.expert-review-body .review-text::after {
    content: "”";
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-left: 2px;
}

.expert-review-rating {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.expert-review-rating .stars {
    color: #ffc107; /* Цвет звезд */
    font-size: 20px;
    display: flex;
    align-items: center;
    position: relative;
    top: -1px;
}

.expert-review-rating .stars span {
    display: block;
    width: 16px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
}

.expert-review-rating .stars .star-empty {
    color: #e0e0e0; /* Цвет пустой звезды */
}

.expert-review-rating .stars .star-half {
    position: relative;
    color: #e0e0e0;
}

.expert-review-rating .stars .star-half::after {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    font-size: 20px;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    color: #ffc107;
}

.expert-review-rating .rating-text {
    margin-left: 8px;
    font-size: 14px;
    color: #555555;
    font-weight: 500;
}

/* Адаптация для мобильных устройств */
@media (max-width: 480px) {
    .expert-review-plaque {
        padding: 15px;
    }

    .expert-avatar {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .expert-name {
        font-size: 16px;
    }

    .expert-title {
        font-size: 13px;
    }

    .expert-review-body .review-text {
        font-size: 15px;
    }
    
    .expert-review-body .review-text::before,
    .expert-review-body .review-text::after {
        font-size: 20px;
    }
    
    .expert-review-rating .stars {
        font-size: 18px;
    }
    
    .expert-review-rating .rating-text {
        font-size: 13px;
    }
}
