/**
 * Styles for Custom HTML Block
 *
 * @package LSBFencingContractors
 */

.custom-html-section {
    padding: 60px 0;
}

.custom-html-section .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-html-container {
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

.custom-html-title {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--blue-medium, #4476c7);
}

.custom-html-content {
    color: #333;
    line-height: 1.6;
}

/* Reset some common elements within custom HTML */
.custom-html-content h1,
.custom-html-content h2,
.custom-html-content h3,
.custom-html-content h4,
.custom-html-content h5,
.custom-html-content h6 {
    margin-bottom: 15px;
    color: #333;
}

.custom-html-content h1 {
    font-size: 32px;
}

.custom-html-content h2 {
    font-size: 28px;
}

.custom-html-content h3 {
    font-size: 24px;
}

.custom-html-content h4 {
    font-size: 20px;
}

.custom-html-content h5 {
    font-size: 18px;
}

.custom-html-content h6 {
    font-size: 16px;
}

.custom-html-content p {
    margin-bottom: 16px;
}

.custom-html-content ul,
.custom-html-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.custom-html-content li {
    margin-bottom: 8px;
}

.custom-html-content a {
    color: var(--blue-dark, #143b7b);
    text-decoration: none;
    transition: color 0.3s;
}

.custom-html-content a:hover {
    color: var(--blue-medium, #4476c7);
    text-decoration: underline;
}

.custom-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.custom-html-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.custom-html-content th,
.custom-html-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.custom-html-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.custom-html-content blockquote {
    border-left: 4px solid var(--blue-dark, #143b7b);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.custom-html-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.custom-html-content pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.custom-html-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .custom-html-section {
        padding: 40px 0;
    }
    
    .custom-html-container {
        padding: 30px 0;
    }
    
    .custom-html-title {
        font-size: 30px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .custom-html-content h1 {
        font-size: 28px;
    }
    
    .custom-html-content h2 {
        font-size: 24px;
    }
    
    .custom-html-content h3 {
        font-size: 20px;
    }
    
    .custom-html-content table {
        font-size: 14px;
    }
    
    .custom-html-content th,
    .custom-html-content td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .custom-html-section {
        padding: 30px 0;
    }
    
    .custom-html-container {
        padding: 20px 0;
    }
    
    .custom-html-title {
        font-size: 26px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .custom-html-content h1 {
        font-size: 24px;
    }
    
    .custom-html-content h2 {
        font-size: 22px;
    }
    
    .custom-html-content h3 {
        font-size: 18px;
    }
    
    .custom-html-content {
        font-size: 15px;
    }
}