/**
 * CTABuilder Frontend Styles
 */

/* Container Styles */
.ctabuilder-container {
    margin: 30px 0;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: border 0.3s ease;
}

/* Container with stroke styles */
.ctabuilder-container-with-stroke {
    box-sizing: border-box;
}

.ctabuilder-full-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
}

.ctabuilder-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Row and Column Layout */
.ctabuilder-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.ctabuilder-column {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Image Styles */
.ctabuilder-image {
    margin-bottom: 20px;
}

.ctabuilder-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image alignment styles removed */

/* Content Styles */
.ctabuilder-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    color: #666;
    /* Line height will be set inline via the subtitle_line_height option */
}

.ctabuilder-content {
    margin-bottom: 20px;
}

.ctabuilder-content h2 {
    margin-top: 0;
    font-size: 28px;
    color: #333;
}

.ctabuilder-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Button Styles */
.ctabuilder-button-container {
    margin-top: 20px;
}

.ctabuilder-button-align-left {
    text-align: left;
}

.ctabuilder-button-align-center {
    text-align: center;
}

.ctabuilder-button-align-right {
    text-align: right;
}

.ctabuilder-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.ctabuilder-button:hover {
    background-color: #005d87;
    color: #fff;
}

/* Ensure stroke styles are preserved on hover */
.ctabuilder-button[style*="border"] {
    transition: background-color 0.3s ease, border 0.3s ease;
}

.ctabuilder-button-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.ctabuilder-button-secondary:hover {
    background-color: #e5e5e5;
    color: #333;
}

/* Full Height Image Layout */
.ctabuilder-full-height-row {
    display: flex;
    min-height: 400px;
}

.ctabuilder-full-height-image-column {
    padding: 0;
}

.ctabuilder-full-height-image {
    height: 100%;
    margin-bottom: 0;
}

.ctabuilder-full-height-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ctabuilder-overlay-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ctabuilder-row,
    .ctabuilder-full-height-row {
        flex-direction: column;
    }
    
    .ctabuilder-column {
        width: 100% !important;
    }
    
    .ctabuilder-full-height-image {
        height: 300px;
    }
    
    /* Responsive image styles */
    .ctabuilder-image img {
        max-width: 100%;
        margin: 0 0 20px 0;
    }
}