/* Text Box Widget Styles */
.text-box-widget {
    width: 100%;
}

/* Text Box Container */
.text-box-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Text Box Title */
.text-box-title {
    color: #333333;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: inherit;
}

/* Text Box Content */
.text-box-content {
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
}

.text-box-content p {
    margin-bottom: 1em;
}

.text-box-content p:last-child {
    margin-bottom: 0;
}

.text-box-content h1,
.text-box-content h2,
.text-box-content h3,
.text-box-content h4,
.text-box-content h5,
.text-box-content h6 {
    color: #333;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.text-box-content h1:first-child,
.text-box-content h2:first-child,
.text-box-content h3:first-child,
.text-box-content h4:first-child,
.text-box-content h5:first-child,
.text-box-content h6:first-child {
    margin-top: 0;
}

.text-box-content ul,
.text-box-content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

.text-box-content img {
    max-width: 100%;
    height: auto;
}

.text-box-content a {
    color: #0066cc;
    text-decoration: underline;
}

.text-box-content a:hover {
    color: #0052a3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-box-container {
        padding: 25px 20px;
        min-height: 150px;
    }
    
    .text-box-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .text-box-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .text-box-container {
        padding: 20px 15px;
        min-height: 120px;
    }
    
    .text-box-title {
        font-size: 1.2rem;
    }
    
    .text-box-content {
        font-size: 0.9rem;
    }
}

/* Elementor Editor Compatibility */
.elementor-widget-text-popup-widget .text-box-container {
    cursor: default;
}