
.one-post-staff {
    width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
}


.entry-header-teacher {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    min-height: 500px; 
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .entry-header-teacher {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


.entry-image {
    height: 500px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e2e8f0;
}

.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.entry-image:hover img {
    transform: scale(1.05);
}

.teacher-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}


.entry-info {
    height: 500px; 
    padding: 40px 0 40px 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.entry-title-teacher {
    font-size: 2.2rem;
    color: #1a365d;
    margin: 0 0 30px 0;
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    flex-shrink: 0;
    padding-right: 15px; /* Место для скроллбара */
}

.entry-meta-scrollable {
    flex: 1;
    overflow-y: auto; /* scroll*/
    padding-right: 15px;
    margin-right: -15px;
    scroll-behavior: smooth;
    
    /* Для Firefox */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f5f9;
}

.entry-meta-scrollable::-webkit-scrollbar {
    width: 8px;
}

.entry-meta-scrollable::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
    margin: 5px 0;
}

.entry-meta-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}

.entry-meta-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.info-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.info-card strong {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-content {
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.5;
    margin: 0;
}

.entry-position .info-card-content {
    font-size: 1.3rem;
    color: #1a365d;
    font-weight: 600;
}

.entry-degree .info-card-content,
.entry-title-rank .info-card-content {
    color: #4a5568;
    font-weight: 500;
}

.entry-contact .info-card-content {
    color: #3182ce;
    font-weight: 500;
}

.entry-contact .info-card-content a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-contact .info-card-content a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.entry-bio {
    margin-top: 25px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
    position: relative;
    color:black;
}

.entry-bio::before {
    content: "Биография";
    display: block;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-bio p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.entry-bio p:last-child {
    margin-bottom: 0;
}

.entry-content {
    padding: 50px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.entry-content p {
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.entry-content h2 {
    font-size: 1.6rem;
    color: #003366;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.entry-content h3 {
    font-size: 1.3rem;
    color: #000000;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 0;
    padding-left: 25px;
}

.entry-content li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #000000;
    line-height: 1.6;
}

/* КНОПКА */
.btn.nlink {
    display: inline-flex;
    align-items: center;
    background: #4299e1;
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 40px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn.nlink:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.3);
}

.btn.nlink::before {
    content: "←";
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Индикатор прокрутки */
.scroll-hint {
    position: absolute;
    bottom: 15px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a0aec0;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.scroll-hint-icon {
    animation: bounce 2s infinite;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}


@media (max-width: 992px) {
    .entry-image {
        height: 400px;
    }
    
    .entry-info {
        height: 400px;
        padding: 30px;
    }
    
    .entry-title-teacher {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .entry-header-teacher {
        min-height: auto;
    }
    
    .entry-image,
    .entry-info {
        height: auto;
    }
    
    .entry-info {
        padding: 20px;
    }
    
    .entry-meta-scrollable {
        overflow-y: visible;
        padding-right: 0;
        margin-right: 0;
    }
    
    .scroll-hint {
        display: none;
    }
    
    .entry-content {
        padding: 30px 0;
    }
}