/* Dynamic Texts Module Styles */

.dynamic-texts-container {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dynamic-text-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.dynamic-text-item .card-body {
    padding: 1.5rem;
}

.dynamic-text-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.text-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.text-tags .badge {
    margin-right: 5px;
    font-size: 0.8rem;
}

/* Layout: Full Width */
.full_width-container .dynamic-text-item {
    width: 100%;
}

/* Layout: Masonry */
.masonry-container {
    column-count: 1;
    column-gap: 20px;
}

.masonry-container .dynamic-text-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    /* Space between items in column */
    break-inside: avoid;
}

@media (min-width: 768px) {
    .masonry-container {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .masonry-container {
        column-count: 3;
    }
}

/* Layout: Carousel */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    /* For scrollbar */
    -webkit-overflow-scrolling: touch;
}

.carousel-container .dynamic-text-item {
    min-width: 300px;
    width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
    margin-bottom: 0;
}

/* Hide scrollbar for cleaner look if JS controls added, but keep for now */
.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}