@php
    $phAvatarSize = isset($avatarSize) ? (int) $avatarSize : 120;
    if ($phAvatarSize < 80) {
        $phAvatarSize = 120;
    }
    $phBioTruncate = isset($bioTruncate) ? (int) $bioTruncate : 100;
    if ($phBioTruncate < 40) {
        $phBioTruncate = 100;
    }
@endphp
<a href="{{ $instructor->getProfileUrl() }}" class="premium-home-instructor-card d-block text-reset text-decoration-none h-100 text-center">
    <div class="premium-home-instructor-card__avatar mx-auto">
        <img src="{{ $instructor->getAvatar($phAvatarSize) }}" alt="{{ $instructor->full_name }}" class="img-cover rounded-circle" loading="lazy" decoding="async" width="{{ $phAvatarSize }}" height="{{ $phAvatarSize }}">
    </div>
    <h3 class="premium-home-instructor-card__name mt-14 mb-0">{{ $instructor->full_name }}</h3>
    @if (!empty($instructor->bio))
        <p class="premium-home-instructor-card__bio mb-0 mt-8">{{ truncate(strip_tags($instructor->bio), $phBioTruncate) }}</p>
    @endif
    <span class="premium-home-instructor-card__link mt-12 d-inline-block">{{ trans('public.profile') }}</span>
</a>
