/* ==========================================
   Read More / Read Less
========================================== */

.read-more-wrapper {
    position: relative;
    margin: 18px 0 28px;
}

/* Content */
.read-more-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.35s ease;
    line-height: 1.9;
}

/* Smooth fade effect */
.read-more-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.75) 55%,
        rgba(255,255,255,1) 100%
    );

    transition: opacity 0.3s ease;
}

/* Hide fade when expanded */
.read-more-content.expanded .read-more-fade {
    opacity: 0;
}

/* ==========================================
   Toggle Button
========================================== */

.read-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 14px;
    margin-left: auto;

    padding: 0;

    background: transparent;
    border: none;

    color: #d4526e;

    font-size: 15px;
    font-weight: 600;
    font-family: inherit;

    cursor: pointer;

    transition: all 0.25s ease;
}

/* right align */
.read-more-wrapper .read-more-toggle {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.read-more-toggle:hover {
    color: #b63c57;
    transform: translateX(2px);
}

.read-more-toggle::after {
    content: "→";
    font-size: 14px;
    transition: transform 0.25s ease;
}

.read-more-content.expanded + .read-more-toggle::after {
    content: "↑";
}

/* ==========================================
   Typography Cleanup
========================================== */

.expandable-description p {
    margin-bottom: 16px;
}

.expandable-description h2,
.expandable-description h3,
.expandable-description h4 {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.4;
}

.expandable-description ul,
.expandable-description ol {
    padding-left: 20px;
    margin-bottom: 18px;
}

.expandable-description img {
    max-width: 100%;
    border-radius: 10px;
}

/* ==========================================
   Mobile
========================================== */

@media (max-width: 768px) {

    .read-more-fade {
        height: 70px;
    }

    .read-more-toggle {
        font-size: 14px;
        margin-top: 10px;
    }
}