/* ========================================
   CONTENT BUILDER STYLES
   ======================================== */

.content-builder {
    padding: 60px 0;
}

/* Headings */
.cb-heading {
    margin: 40px 0 20px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
}

.cb-heading:first-child {
    margin-top: 0;
}

.content-builder h2.cb-heading {
    font-size: 36px;
}

.content-builder h3.cb-heading {
    font-size: 28px;
}

.content-builder h4.cb-heading {
    font-size: 22px;
}

/* Text block */
.cb-text {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.cb-text p {
    margin: 15px 0;
}

.cb-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.cb-text a {
    color: #0073aa;
}

.cb-text a:hover {
    color: #005177;
}

/* Lists */
.cb-list {
    margin: 30px 0;
}

.cb-list-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.cb-list-items {
    margin: 15px 0;
    padding-left: 25px;
}

ul.cb-list-items {
    list-style-type: disc;
}

ol.cb-list-items {
    list-style-type: decimal;
}

.cb-list-items li {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.cb-list-items li::marker {
    color: #0073aa;
}

/* Columns */
.cb-columns {
    display: grid;
    gap: var(--cb-gap, 30px);
    margin: 30px 0;
    grid-template-columns: var(--cb-columns-layout, repeat(2, 1fr));
    align-items: stretch;
}

/*
.cb-columns-1 {
    grid-template-columns: 1fr;
}

.cb-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cb-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cb-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cb-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}
*/

.cb-column {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
}

.cb-column[style*="background-color"] {
    border-radius: 8px;
}

.cb-column[style*="padding"] {
    box-sizing: border-box;
}

.cb-column p {
    margin: 15px 0;
}

.cb-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.cb-column ul,
.cb-column ol {
    margin: 0px;
    padding-left: 18px;
}

.cb-column ul {
    list-style-type: disc;
}

.cb-column ol {
    list-style-type: decimal;
}

.cb-column li {
    margin: 7px 0;
}

.cb-column li::marker {
    color: #0073aa;
}

ul, ol {
    margin: 15px 0;
    padding-left: 25px;
}

.fa-ul li {
    list-style-type: disc;
}

.fa-ol li{
    list-style-type: decimal;
}

a {
    text-decoration: none;
}

.fa-ul li::marker {
    color: #0073aa;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* Image */
.cb-image {
    margin: 40px 0;
    text-align: center;
}

.cb-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cb-image-full img {
    width: 100%;
}

.cb-image-large img {
    max-width: 900px;
}

.cb-image-medium img {
    max-width: 600px;
}

.cb-image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Quote */
.cb-quote {
    margin: 40px 0;
    padding: 30px 40px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    position: relative;
}

.cb-quote-text {
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    margin: 0;
}

.cb-quote-author {
    display: block;
    margin-top: 15px;
    font-size: 16px;
    color: #666;
    font-style: normal;
    font-weight: 600;
}

/* Divider */
.cb-divider {
    margin: 40px 0;
    border: none;
    border-top: 2px solid #e5e5e5;
}

.cb-spacer {
    margin: 60px 0;
}

/* Content Row (Flex/Grid) */
.cb-content-row {
    margin: 30px 0;
}

.cb-content-row-item {
    min-width: 0;
}

.cb-content-row-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.cb-content-row-text p {
    margin: 15px 0;
}

.cb-content-row-text p:first-child {
    margin-top: 0;
}

.cb-content-row-text p:last-child {
    margin-bottom: 0;
}

.cb-content-row-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.cb-content-row-text a {
    color: #0073aa;
}

.cb-content-row-text a:hover {
    color: #005177;
}

.cb-content-row-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.alignright  {
    float: right;
    margin-left: 1rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .content-builder {
        padding: 40px 0;
    }

    .content-builder h2.cb-heading {
        font-size: 28px;
    }

    .content-builder h3.cb-heading {
        font-size: 22px;
    }

    .content-builder h4.cb-heading {
        font-size: 18px;
    }

    .cb-columns {
        grid-template-columns: 1fr !important;
        gap: 20px; /* Optional: Keep mobile gap or remove to use variable */
    }

    .cb-quote {
        padding: 20px 25px;
    }

    .cb-quote-text {
        font-size: 18px;
    }

    .cb-text,
    .cb-list-items li,
    .cb-column,
    .cb-content-row-text {
        font-size: 15px;
    }

    .cb-content-row {
        flex-direction: column !important;
    }

    .cb-content-row-item {
        width: 100% !important;
        flex: none !important;
    }
}

@media (max-width: 480px) {
    .content-builder {
        padding: 30px 0;
    }

    .cb-heading {
        margin: 30px 0 15px;
    }

    .cb-divider,
    .cb-spacer {
        margin: 30px 0;
    }
}

