/* ==========================================================================
   Holy Apostles - Paragraph Read More Styles
   ========================================================================== */

.ha-read-more-wrapper {
    position: relative;
    /* Ensure no double margins since it wraps a paragraph */
}

/* The inner content area */
.ha-read-more-content {
    transition: all 0.3s ease;
}

/* Remove bottom margin from the last child to prevent uneven spacing */
.ha-read-more-content > :last-child {
    margin-bottom: 0;
}

/* --- Modes --- */

/* Mode: Lines (Line Clamp) */
.ha-read-more-content.mode-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* -webkit-line-clamp is set dynamically via inline style by PHP */
}

/* Mode: Hidden */
.ha-read-more-content.mode-hidden {
    display: none;
}

/* --- Expanded State --- */
.ha-read-more-wrapper.is-expanded .ha-read-more-content.mode-lines {
    -webkit-line-clamp: unset !important;
}

.ha-read-more-wrapper.is-expanded .ha-read-more-content.mode-hidden {
    display: block;
}

/* --- Toggle Button --- */
.ha-read-more-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 8px;
    margin-bottom: 1em;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s, opacity 0.2s;
    display: inline-block;
}

.ha-read-more-toggle:hover {
    text-decoration-color: currentColor;
    opacity: 0.8;
}
