 /**Block 10: CSS Styles File */
 
 /**
 * Custom Text Widget CSS
 * File: custom-text.css
 */

/* Base Styling */
.custom-text-container {
    width: 100%;
    overflow-wrap: break-word;
}

.custom-text-content {
    width: 100%;
}

/* Enhanced paragraph spacing control */
.custom-text-content p {
    margin-top: 0;
    margin-bottom: 0; /* Reset default margins */
}

.custom-text-content p + p {
    margin-top: var(--paragraph-spacing, 1em); /* Use CSS variable for spacing */
}

/* Drop Cap Styling */
.custom-text-dropcap::first-letter {
    float: left;
    font-size: 4em;
    line-height: 0.8;
    margin-right: 0.2em;
    font-weight: bold;
}

.elementor--drop-cap-view-stacked .custom-text-content::first-letter {
    background-color: #818a91;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    margin-right: 0.2em;
}

.elementor--drop-cap-view-framed .custom-text-content::first-letter {
    border: 3px solid #818a91;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    margin-right: 0.2em;
}

/* Column Layout */
.custom-text-columns-yes .custom-text-content {
    column-gap: 2em;
}

/* Responsive Styling */
@media (max-width: 767px) {
    .custom-text-dropcap::first-letter {
        font-size: 3em;
    }
    
    .custom-text-columns-yes .custom-text-content {
        column-count: 1 !important;
    }
}
