
.reactions-wrapper {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.3rem;
}

.reactions-wrapper .reaction-button {
    padding: 0.6rem 1.2rem; 
    transition: all 0.2s; 
    background: none; 
    line-height: 1; 
    text-decoration:none;
    display: block;
    margin-bottom: 0;
    
}
.btn-reaction {
    border: 1px solid;
    border-radius: 20px;
}
/* Стили Foundation для наведения */
.btn-reaction:hover {
    border-color: #1779ba !important;
    background: #f4f9fc !important;
}
.btn-reaction:hover .like-icon {
    stroke: #1779ba;
}

/* Стили для АКТИВНОГО состояния (когда лайк нажат) */
.btn-reaction.active {
    border-color: #1779ba !important;
    background-color: #e8f4fd !important;
}
.btn-reaction.active .like-icon {
    fill: #1779ba;     /* Заливаем иконку синим */
    stroke: #1779ba;   /* Красим контур */
}
.btn-reaction.active .count-text {
    color: #1779ba !important; /* Делаем текст счетчика синим */
}

.view-blog .view-content .views-field-body p {
    margin-bottom: 0;
}

.page .main article .body::after{
    content: "";
    display: table;
    clear: both;
}

.home-read-more {
    margin: 1rem 0;
}

.right-nav p:not(.email) {
    display: grid;
    align-items: center;
    grid-template-columns: 36px auto;
}

/* Стили для карточки преподавателя */
.card-teacher-full {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.teacher-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e1dfec;
}

.teacher-info-cell {
    padding-left: 0.5rem;
    padding-right: 1.5rem;
}

.teacher-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
}

.teacher-subject-label {
    background: #f0efff;
    color: #635bff;
    border-radius: 6px;
    font-weight: 600;
    padding: 0.3em 0.6em;
    font-size: 0.8rem;
    display: inline-block;
    vertical-align: middle;
}

.teacher-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    margin-top: 4px;
}

.teacher-meta-item {
    margin-right: 15px;
}

.teacher-meta-value {
    color: #0a0a0a;
}

.teacher-bio-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teacher-aims-label {
    font-size: 0.8rem;
    color: #888;
    margin-right: 6px;
}

.teacher-aim-badge {
    font-size: 0.85rem;
    color: #0a0a0a;
    font-weight: 500;
    background: #f7f7f9;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    display: inline-block;
}

.teacher-price-block {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.teacher-price-label {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

.teacher-price-value {
    color: #635bff;
    font-size: 1.4rem;
    display: block;
    margin-top: -2px;
}

.teacher-btn-more {
    background-color: #635bff;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 0;
    width: 100%;
    padding: 0.75rem 1rem;
}

.teacher-btn-more:hover, .teacher-btn-more:focus {
    background-color: #4e44dd;
    color: #fff;
}

.teacher-phone-link {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 8px;
    text-decoration: underline;
}