/* Show More Functionality */
.details-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.details-container.collapsed {
    max-height: 500px;
    /* Adjust this value based on your needs */
}

.details-container.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9), white);
    pointer-events: none;
}

.details-container:not(.collapsed) {
    max-height: none;
}

.details-container:not(.collapsed)::after {
    display: none;
}

.show-more-btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
}

.show-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.show-more-btn .arrow-icon {
    transition: transform 0.3s ease;
}

.show-more-btn.expanded .arrow-icon {
    transform: rotate(180deg);
}

.show-more-btn .show-text,
.show-more-btn .hide-text {
    transition: opacity 0.2s ease;
}

/* Hide button if content is short */
.details-container.short-content+.show-more-wrapper {
    display: none;
}

/* Animation for smooth expand/collapse */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-container:not(.collapsed) {
    animation: fadeInUp 0.4s ease;
}