/* Цветовая палитра на основе #0097dc */
:root {
    --primary-color: #0097dc;
    --primary-light: #00b4ff;
    --primary-dark: #007bb5;
    --secondary-color: #00dcb4;
    --accent-color: #dc0097;
    --gradient-primary: linear-gradient(135deg, #0097dc 0%, #00b4ff 100%);
    --gradient-secondary: linear-gradient(135deg, #00dcb4 0%, #00ffd5 100%);
    --gradient-accent: linear-gradient(135deg, #0097dc 0%, #00dcb4 50%, #00b4ff 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 151, 220, 0.9) 0%, rgba(0, 180, 255, 0.85) 100%);
}

/* Hero секция с изображением */
.post-hero {
    position: relative;
    height: 45vh;
    min-height: 350px;
    overflow: hidden;
    background: var(--gradient-primary);
}

/* .post-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 220, 180, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.post-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
} */

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 151, 220, 0.05);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding-top: 60px;
    color: white;
}

.post-breadcrumbs {
    margin-bottom: 20px;
}

.post-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.post-breadcrumbs a:hover {
    color: var(--secondary-color);
}

.post-breadcrumbs span {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.post-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.post-meta-hero {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.post-meta-hero-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.post-meta-hero-item i {
    font-size: 20px;
    opacity: 0.8;
    color: var(--secondary-color);
}

/* Контейнер контента - плавающая карточка */
.post-content-wrapper {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.post-main-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 151, 220, 0.15);
    padding: 50px;
    margin-bottom: 40px;
    transition: box-shadow 0.3s ease;
}

.post-main-card:hover {
    box-shadow: 0 25px 70px rgba(0, 151, 220, 0.2);
}

.post-lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    font-weight: 400;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(0, 151, 220, 0.1);
}

.post-content-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.post-content-text p {
    margin-bottom: 1.5rem;
}

.post-content-text h2,
.post-content-text h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.post-content-text a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.post-content-text a:hover {
    color: var(--secondary-color);
}

/* Боковая панель - улучшенная версия для Safari */
.post-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    z-index: 100;
}

.col-lg-3 {
    position: relative;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 151, 220, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: 0 15px 40px rgba(0, 151, 220, 0.2);
    transform: translateY(-5px);
}

.sidebar-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.sidebar-card h4 i {
    color: var(--secondary-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #128c4a;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.telegram:hover {
    background: #006699;
}

.share-btn.max {
    background: var(--gradient-primary);
    padding: 8px;
}

.share-btn.max:hover {
    background: var(--gradient-accent);
}

.max-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Читайте также */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 151, 220, 0.1);
}

.related-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 151, 220, 0.25);
}

.related-post-link {
    text-decoration: none;
    display: block;
}

.related-post-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post-item:hover .related-post-overlay {
    opacity: 1;
}

.related-post-overlay i {
    color: white;
    font-size: 24px;
    transform: translateX(-10px);
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-overlay i {
    transform: translateX(0);
}

.related-post-content {
    padding: 15px;
    background: white;
}

.related-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-item:hover .related-post-title {
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
}

.related-post-date i {
    color: var(--primary-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.post-tag {
    padding: 8px 16px;
    background: rgba(0, 151, 220, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.post-tag:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 151, 220, 0.2);
}

/* Адаптивность */
@media (max-width: 991px) {
    .post-hero h1 {
        font-size: 2rem;
    }

    .post-main-card {
        padding: 30px;
    }

    .post-content-wrapper {
        margin-top: -50px;
    }

    .post-sidebar {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .post-hero h1 {
        font-size: 1.5rem;
    }

    .post-main-card {
        padding: 20px;
        border-radius: 15px;
    }

    .post-meta-hero {
        gap: 15px;
    }
}

/* Дополнительная поддержка для Safari */
@supports (-webkit-overflow-scrolling: touch) {
    .post-sidebar {
        position: -webkit-sticky;
        position: sticky;
    }
}

/* Дополнительные стили */
.text-primary,
.text-color-primary {
    color: var(--primary-color) !important;
}

/* SVG иконки */
.svg-fill-color-primary {
    fill: var(--primary-color) !important;
}

.svg-fill-color-primary:hover {
    fill: var(--secondary-color) !important;
}

/* Анимация градиента */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}