/* Typography and Article Content Styles */

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569; /* slate-600 */
    text-align: justify; /* Выравнивание по ширине */
}

.article-content p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-content h2, 
.article-content h3, 
.article-content h4 {
    color: #0f172a; /* slate-900 */
    font-weight: 800;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-align: left; /* Заголовки оставляем по левому краю */
}

.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.5rem; }

.article-content img {
    border-radius: 1.5rem;
    box-shadow: none;
    margin-top: 1.25rem; /* Уменьшенный отступ сверху */
    margin-bottom: 1.25rem; /* Уменьшенный отступ снизу */
    width: 100%;
    height: auto;
}

.article-content ul, 
.article-content ol {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    text-align: left; /* Списки лучше смотрятся по левому краю */
}

.article-content li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-content a {
    color: #2563eb; /* primary blue */
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    color: #334155;
    text-align: left;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.carousel-item {
    flex: 0 0 100%;
    min-width: 0;
}

@media (min-width: 640px) {
    .carousel-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1280px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 1.333rem);
    }
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: 1px solid #e2e8f0;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.carousel-button:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.carousel-button.prev { left: -1.5rem; }
.carousel-button.next { right: -1.5rem; }

@media (max-width: 768px) {
    .carousel-button { display: none; }
}
ntvk-tag.ntvk-frame.banner {
    zoom: 0.9;
}
.z-full {
    z-index: 9999999;
}

/* ========================================
   Post Card Hover Animation - Lift Effect
   ======================================== */

.post-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Карусель - без тени, минимальный подъём */
.carousel-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card:hover {
    transform: translateY(-2px);
}

/* Плавное изменение яркости изображения при hover */
.post-card-image {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.post-card:hover .post-card-image,
.carousel-card:hover .post-card-image {
    filter: brightness(1.03);
}

/* Для сайдбара - более мягкий эффект */
.sidebar-post-card {
    transition: transform 0.2s ease;
}

.sidebar-post-card:hover {
    transform: translateX(4px);
}
