.mint-readmore-text {
    position: relative;
    overflow: hidden;
}

.mint-readmore-content {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.mint-readmore-text.collapsing .mint-readmore-content {
    transition: max-height 0.5s ease, opacity 0.3s ease;
}

.mint-readmore-content {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

/* ✅ Sync paragraph margins with line-height */
.mint-readmore-content p {
    margin-top: 0;
    margin-bottom: var(--readmore-lineheight, 1em); /* fallback */
}

/* Optional: If using lists or headings, make them tighter */
.mint-readmore-content h1,
.mint-readmore-content h2,
.mint-readmore-content h3,
.mint-readmore-content h4,
.mint-readmore-content h5,
.mint-readmore-content h6 {
    margin-top: calc(var(--readmore-lineheight, 1em) / 1.5);
    margin-bottom: calc(var(--readmore-lineheight, 1em) / 1.5);
}

.mint-readmore-toggle {
    background: none;
    border: none;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.mint-readmore-toggle:hover {
    color: #777;
}
