/* Картка розширюється на всю ширину */
.is-expanded {
    grid-column: 1 / -1 !important;
}

/* Обгортка контенту — завжди overflow:hidden */
.news-content-wrapper {
    overflow: hidden !important;
    transition: opacity 0.3s ease, margin 0.3s ease;
}

/* Закритий стан — повний колапс, нуль висоти */
.news-content-wrapper:not(.is-open):not(.is-loading) {
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    opacity: 0;
    pointer-events: none;
}

/* Відкритий стан */
.news-content-wrapper.is-open,
.news-content-wrapper.is-loading {
    max-height: none !important;
    margin-top: 25px !important;
    margin-bottom: 25px !important;
    opacity: 1;
    pointer-events: auto;
}

/* Скелетон */
.news-skeleton-loader {
    display: none;
    padding: 10px 0;
}

.skeleton-line {
    height: 14px;
    background: #e0e0e0;
    margin-bottom: 10px;
    border-radius: 4px;
    animation: dtfPulse 1.5s infinite ease-in-out;
}

.skeleton-line:last-child {
    width: 60%;
}

@keyframes dtfPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}