.content-section {
    padding: 65rem 0;
}

.content-editor h1 {
    font-family: var(--heading-font-family, var(--font-main));
    font-weight: 700;
    font-size: 40rem;
    line-height: 48rem;
    color: var(--content-editor-heading-color);
    margin-bottom: 30rem;
    position: relative;
}

.content-editor h1::after {
    content: '';
    position: absolute;
    bottom: -10rem;
    left: 0;
    width: 60rem;
    height: 4rem;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 2rem;
}

.content-editor h2 {
    font-family: var(--heading-font-family, var(--font-main));
    font-weight: 700;
    font-size: 32rem;
    line-height: 40rem;
    margin: 40rem 0 25rem;
}

.content-editor h3 {
    font-family: var(--heading-font-family, var(--font-main));
    font-weight: 600;
    font-size: 28rem;
    line-height: 36rem;
    margin: 35rem 0 20rem;
}

.content-editor h4 {
    font-family: var(--heading-font-family, var(--font-main));
    font-weight: 600;
    font-size: 24rem;
    line-height: 32rem;
    margin: 30rem 0 18rem;
}

.content-editor h5 {
    font-family: var(--heading-font-family, var(--font-main));
    font-weight: 600;
    font-size: 20rem;
    line-height: 28rem;
    margin: 25rem 0 15rem;
}

.content-editor h6 {
    font-family: var(--heading-font-family, var(--font-main));
    font-weight: 600;
    font-size: 18rem;
    line-height: 26rem;
    margin: 20rem 0 12rem;
    text-transform: uppercase;
    letter-spacing: 1rem;
}

.content-editor p {
    margin-bottom: 20rem;
}

.content-editor p:last-child {
    margin-bottom: 0;
}

.content-editor ul,
.content-editor ol {
    margin: 20rem 0;
    padding-left: 30rem;
}

.content-editor ul > li {
    position: relative;
    margin-bottom: 12rem;
    padding-left: 15rem;
}

.content-editor ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12rem;
    width: 6rem;
    height: 6rem;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

.content-editor ol {
    counter-reset: list-counter;
}

.content-editor ol > li {
    position: relative;
    margin-bottom: 12rem;
    padding-left: 25rem;
    counter-increment: list-counter;
}

.content-editor ol > li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20rem;
    height: 20rem;
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
    font-size: 12rem;
    line-height: 20rem;
    text-align: center;
    border-radius: 50%;
}

.content-editor a:not(.button) {
    color: var(--content-editor-link-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: 
        color var(--global-transition-duration),
        text-decoration-color var(--global-transition-duration);
}

.content-editor address {
    padding: 10rem 10rem;
    border-left: 4rem solid var(--color-accent);
    border-radius: 0 var(--global-xs-border-radius) var(--global-xs-border-radius) 0;
    margin: 20rem 0;
}

.content-editor strong {
    font-weight: 700;
    color: var(--color-accent);
}

.content-editor hr {
    height: 2rem;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 50%, transparent 100%);
    border: none;
    border-radius: 1rem;
    margin: 40rem 0;
}

.content-editor ul ul,
.content-editor ol ol,
.content-editor ul ol,
.content-editor ol ul {
    margin: 10rem 0;
    padding-left: 25rem;
}

.content-editor ul ul > li::before {
    background: var(--color-secondary);
    width: 4rem;
    height: 4rem;
}

.content-editor ol ol > li::before {
    background: var(--color-accent);
    color: var(--color-primary);
}

@media (hover: hover) {
    .content-editor a:not(.button):hover {
        color: var(--color-white);
        text-decoration-color: var(--color-accent);
    }
}

@media (hover: none) {
    .content-editor a:not(.button):focus {
        color: var(--color-white);
        text-decoration-color: var(--color-accent);
    }
}

/* Table Styles */
.content-editor table,
table:not(.content-table) {
    width: 100%;
    background: var(--body-background, var(--color-primary, #2a2a2a));
    border-collapse: collapse;
    border-radius: var(--settings-borderRadius, 16rem);
    overflow: hidden;
    box-shadow: 0 4rem 12rem rgba(0, 0, 0, 0.2);
    margin: 24rem 0;
}

.content-editor table thead,
table:not(.content-table) thead {
    background: var(--table-header-background, var(--color-primary-dark, #1a1a1a));
}

.content-editor table th,
table:not(.content-table) th {
    background: var(--table-header-background, var(--color-primary-dark, #1a1a1a));
    color: var(--table-header-text, var(--body-text));
    font-family: var(--heading-font-family, var(--font-main));
    font-weight: 600;
    font-size: 16rem;
    line-height: 24rem;
    padding: 16rem 20rem;
    text-align: left;
    border-bottom: 2rem solid var(--table-border-color, rgba(255, 255, 255, 0.1));
}

.content-editor table td,
table:not(.content-table) td {
    padding: 14rem 20rem;
    font-size: 16rem;
    line-height: 24rem;
    color: var(--table-text-color, var(--body-text));
    border-bottom: 1rem solid var(--table-border-color, rgba(255, 255, 255, 0.1));
}

.content-editor table tbody tr,
table:not(.content-table) tbody tr {
    background: var(--table-row-background, transparent);
    transition: background-color var(--global-transition-duration, 0.3s);
}

.content-editor table tbody tr:nth-child(even),
table:not(.content-table) tbody tr:nth-child(even) {
    background: var(--table-row-alt-background, rgba(255, 255, 255, 0.03));
}

.content-editor table tbody tr:hover,
table:not(.content-table) tbody tr:hover {
    background: var(--table-row-hover-background, rgba(255, 255, 255, 0.05));
}

.content-editor table tbody tr:last-child td,
.content-editor table tbody tr:last-child th,
table:not(.content-table) tbody tr:last-child td,
table:not(.content-table) tbody tr:last-child th {
    border-bottom: none;
}

/* Table wrapper for responsive scrolling on mobile */
@media screen and (max-width: 767px) {
    .content-editor table,
    table:not(.content-table) {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .content-editor table thead,
    .content-editor table tbody,
    .content-editor table tr,
    table:not(.content-table) thead,
    table:not(.content-table) tbody,
    table:not(.content-table) tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
}

@media screen and (min-width: 768px) {
    .content-editor table th,
    table th {
        font-size: 18rem;
        line-height: 26rem;
        padding: 18rem 24rem;
    }

    .content-editor table td,
    table td {
        font-size: 16rem;
        line-height: 24rem;
        padding: 16rem 24rem;
    }
}