/* Страница одной истории пациента (single-patient_story) */

.patient-story-single {
    padding: 60px 0;
    background: #fff;
}

.breadcrumbs-wrapper {
    margin-bottom: 30px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: #008BD0;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #333;
}

.story-header {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.header-content {
    flex: 1;
    width: 100%;
}

.story-title {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.2;
}

.story-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.4;
}

/* На странице одной истории мета — колонкой (не как в карточках) */
.patient-story-single .story-meta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.story-date {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.story-quote {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #06CFE5;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.image-wrapper {
    flex: 0 0 300px;
}

.header-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.story-content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.story-text-content {
    font-size: 1.2em;
    color: #000;
}

.story-main-content {
    flex: 2;
}

.story-sidebar {
    flex: 1;
    max-width: 350px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.photo-carousel-section {
    margin: 60px 0;
}

.photo-carousel-section h2 {
    margin-bottom: 30px;
    color: #333;
}

.photo-carousel {
    position: relative;
    padding: 20px 0 60px 0;
}

.carousel-photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-photo-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.story-navigation {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 40px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.nav-prev,
.nav-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background: -webkit-gradient(linear, left top, left bottom, from(#008BD0), to(#44C9AD));
    background: linear-gradient(90deg, #06CFE5 0%, #66C924 100%);
    color: white;
    transform: translateY(-2px);
}

.nav-prev svg,
.nav-next svg {
    flex-shrink: 0;
}

.sidebar-widget {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.back-to-archive {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: -webkit-gradient(linear, left top, left bottom, from(#008BD0), to(#44C9AD));
    background: linear-gradient(90deg, #06CFE5 0%, #66C924 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.back-to-archive:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.recent-stories h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.recent-stories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-stories li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.recent-stories li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.recent-story-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.recent-story-link:hover {
    color: #008BD0;
}

.recent-story-thumb {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-story-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.recent-story-info time {
    font-size: 0.8rem;
    color: #888;
}

.cta-widget {
    background: -webkit-gradient(linear, left top, left bottom, from(#008BD0), to(#44C9AD));
    background: linear-gradient(90deg, #06CFE5 0%, #66C924 100%);
    color: white;
    text-align: center;
}

.cta-widget h3 {
    margin-top: 0;
    color: white;
}

.cta-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #008BD0;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Модальное окно фото */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 5px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
}

/* Swiper на странице истории */
.patient-story-single .swiper-button-next,
.patient-story-single .swiper-button-prev {
    color: #06CFE5;
}

.patient-story-single .swiper-pagination-bullet-active {
    background: #66C924;
}

/* Адаптивность */
@media (max-width: 992px) {
    .story-header {
        flex-direction: column;
    }

    .header-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .story-content-wrapper {
        flex-direction: column;
    }

    .story-sidebar {
        max-width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .patient-story-single {
        padding: 40px 0;
    }

    .story-title {
        font-size: 2rem;
    }

    .carousel-photo-item img {
        height: 300px;
    }

    .story-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-prev,
    .nav-next {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .story-title {
        font-size: 1.8rem;
    }

    .carousel-photo-item img {
        height: 250px;
    }

    .header-image img {
        border-radius: 8px;
    }
}