.blog-content-section {
    width: 100%;
    margin-top: 0;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.blog-content-section__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.blog-content-section.alignwide .blog-content-section__inner {
    width: 100%;
}

.blog-content-section.alignfull .blog-content-section__inner {
    width: 100%;
}

.blog-content-section__inner p {
    color: rgb(61, 61, 61);
    display: block;
    font-family: Lexend, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0px;
    text-align: justify;
    height: auto;
    hyphens: auto;
    margin-bottom: 1.5rem;
}

.blog-content-section__inner p:last-child {
    margin-bottom: 0;
}

/* Headings */
.blog-post-layout__content h2,
.blog-post-layout__content h3 {
    font-family: Lexend, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

.blog-content-section__inner h2 {
    line-height: 1.2 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.blog-content-section__inner h3 {
    line-height: 1.2 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.blog-content-section__inner ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-content-section__inner ul li {
    color: rgb(61, 61, 61);
    font-family: Lexend, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0px;
    margin-bottom: 0.5rem;
}

.blog-content-section__inner ul:last-child {
    margin-bottom: 0;
}

.blog-content-section__inner ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-content-section__inner ol li {
    color: rgb(61, 61, 61);
    font-family: Lexend, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0px;
    margin-bottom: 0.5rem;
}

.blog-content-section__inner ol:last-child {
    margin-bottom: 0;
}

.blog-content-section__inner a {
    color: #2ecc71;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-content-section__inner a:hover {
    color: #27ae60;
}

.blog-content-section__inner blockquote {
    border-left: 5px solid var(--brand-4, #2ecc71);
    margin-bottom: 10px;
    padding: 10px 20px;
}

/* Table styles - compact */
.blog-content-section__table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.blog-content-section__inner table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.4;
    background-color: transparent;
    display: table;
}

.blog-content-section__inner table th,
.blog-content-section__inner table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    background-color: transparent;
    color: #000; /* Default black text - JavaScript will adjust for dark backgrounds */
}

/* Default styles for headers and cells */
.blog-content-section__inner table th {
    font-weight: 500;
    color: #000;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .blog-content-section__table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
    
    .blog-content-section__inner table {
        min-width: 600px; /* Prevent too much compression on mobile */
    }
}

/* Editor styles - ensure tables have same styling in admin */
.editor-styles-wrapper .blog-content-section__inner table,
.block-editor-block-list__layout .blog-content-section__inner table,
.is-root-container .blog-content-section__inner table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.4;
    background-color: transparent !important;
    display: table;
}

.editor-styles-wrapper .blog-content-section__inner table th,
.editor-styles-wrapper .blog-content-section__inner table td,
.block-editor-block-list__layout .blog-content-section__inner table th,
.block-editor-block-list__layout .blog-content-section__inner table td,
.is-root-container .blog-content-section__inner table th,
.is-root-container .blog-content-section__inner table td {
    padding: 8px 12px;
    border: 1px solid #ddd !important;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    background-color: transparent !important;
    color: #000;
}

.editor-styles-wrapper .blog-content-section__inner table th,
.block-editor-block-list__layout .blog-content-section__inner table th,
.is-root-container .blog-content-section__inner table th {
    font-weight: 500;
    color: #000;
    background-color: transparent !important;
}

/* Remove alternating row backgrounds in editor */
.editor-styles-wrapper .blog-content-section__inner table tr,
.block-editor-block-list__layout .blog-content-section__inner table tr,
.is-root-container .blog-content-section__inner table tr {
    background-color: transparent !important;
}

.editor-styles-wrapper .blog-content-section__inner table tr:nth-child(even),
.editor-styles-wrapper .blog-content-section__inner table tr:nth-child(odd),
.block-editor-block-list__layout .blog-content-section__inner table tr:nth-child(even),
.block-editor-block-list__layout .blog-content-section__inner table tr:nth-child(odd),
.is-root-container .blog-content-section__inner table tr:nth-child(even),
.is-root-container .blog-content-section__inner table tr:nth-child(odd) {
    background-color: transparent !important;
}

.editor-styles-wrapper .blog-content-section__inner table tr:nth-child(even) td,
.editor-styles-wrapper .blog-content-section__inner table tr:nth-child(even) th,
.editor-styles-wrapper .blog-content-section__inner table tr:nth-child(odd) td,
.editor-styles-wrapper .blog-content-section__inner table tr:nth-child(odd) th,
.block-editor-block-list__layout .blog-content-section__inner table tr:nth-child(even) td,
.block-editor-block-list__layout .blog-content-section__inner table tr:nth-child(even) th,
.block-editor-block-list__layout .blog-content-section__inner table tr:nth-child(odd) td,
.block-editor-block-list__layout .blog-content-section__inner table tr:nth-child(odd) th,
.is-root-container .blog-content-section__inner table tr:nth-child(even) td,
.is-root-container .blog-content-section__inner table tr:nth-child(even) th,
.is-root-container .blog-content-section__inner table tr:nth-child(odd) td,
.is-root-container .blog-content-section__inner table tr:nth-child(odd) th {
    background-color: transparent !important;
}

