.content-teks h3 {
    font-weight: bold;
    color: black;
    font-size: 20px;
}

.content-teks h2 {
    font-weight: bold;
    color: black;
    font-size: 24px;
}

.content-teks p,
.content-teks h3,
.content-teks h2,
.content-teks img,
.content-teks ul,
.content-teks ol,
.content-teks pre {
    margin-bottom: 12px;
}

.content-teks a {
    color: rgb(4, 0, 255);
    font-weight: bold;
}

.content-teks figcaption {
    display: none;
}

.content-teks ol {
    list-style: number;
    margin-left: 20px;
}

.content-teks ul {
    list-style: circle;
    margin-left: 20px;
}

.content-teks span {
    font-size: 16px;
}

.content-teks li {
    /* padding-bottom: 14px; */
    font-size: 16px;
    line-height: 1.6;
}

/* Optimasi untuk angka dalam ordered list */
.content-teks ol li::marker {
    font-size: 15px;
    font-weight: bold;
}

/* Optimasi untuk bullet dalam unordered list */
.content-teks ul li::marker {
    font-size: 13px;
}

.content-teks p {
    line-height: 28px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .content-teks h3 {
        font-size: 18px;
    }

    .content-teks h2 {
        font-weight: bold;
        color: black;
        font-size: 22px;
    }

    .content-teks p,
    .content-teks h3,
    .content-teks img,
    .content-teks ul,
    .content-teks ol,
    .content-teks pre {
        margin-bottom: 10px;
    }

    .content-teks a {
        color: rgb(21, 0, 255);
        font-weight: bold;
    }

    .content-teks figcaption {
        display: none;
    }

    .content-teks ol {
        list-style: number;
        margin-left: 15px;
    }

    .content-teks ul {
        list-style: circle;
        margin-left: 15px;
    }

    .content-teks span {
        font-size: 14px;
    }

    .content-teks li {
        /* padding-bottom: 8px; */
        font-size: 12px;
        line-height: 1.5;
    }

    /* Mobile: Optimasi marker untuk ordered list */
    .content-teks ol li::marker {
        font-size: 11px;
        font-weight: bold;
    }

    /* Mobile: Optimasi marker untuk unordered list */
    .content-teks ul li::marker {
        font-size: 9px;
    }

    /* Mobile: Optimasi untuk nested lists */
    .content-teks ul ul li,
    .content-teks ol ol li,
    .content-teks ul ol li,
    .content-teks ol ul li {
        font-size: 11px;
    }

    /* Mobile: Optimasi marker untuk nested lists */
    .content-teks ul ul li::marker,
    .content-teks ol ol li::marker,
    .content-teks ul ol li::marker,
    .content-teks ol ul li::marker {
        font-size: 8px;
    }

    .content-teks p {
        line-height: 22px;
        font-size: 12px;
    }
}

/* Rich Editor Enhancements for Filament */
.content-teks h1 {
    font-weight: bold;
    color: black;
    font-size: 28px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.content-teks h4 {
    font-weight: bold;
    color: black;
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.content-teks h5 {
    font-weight: bold;
    color: black;
    font-size: 16px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.content-teks h6 {
    font-weight: bold;
    color: black;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Text formatting */
.content-teks strong,
.content-teks b {
    font-weight: bold;
}

.content-teks em,
.content-teks i {
    font-style: italic;
}

.content-teks u {
    text-decoration: underline;
}

.content-teks s,
.content-teks del {
    text-decoration: line-through;
}

.content-teks mark {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
}

.content-teks small {
    font-size: 0.875em;
}

.content-teks sub {
    vertical-align: sub;
    font-size: 0.75em;
}

.content-teks sup {
    vertical-align: super;
    font-size: 0.75em;
}

/* Code styling */
.content-teks code {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #3341d6;
}

.content-teks pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
}

.content-teks pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Blockquote styling */
.content-teks blockquote {
    border-left: 4px solid rgb(4, 0, 255);
    margin: 20px 0;
    padding: 16px 20px;
    background-color: #f8f9fa;
    font-style: italic;
    color: #6c757d;
    border-radius: 0 4px 4px 0;
}

.content-teks blockquote p {
    margin-bottom: 0;
}

.content-teks blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #868e96;
    font-style: normal;
}

/* Table styling */
.content-teks table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.content-teks th,
.content-teks td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.content-teks th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.content-teks tr:last-child td {
    border-bottom: none;
}

.content-teks th:last-child,
.content-teks td:last-child {
    border-right: none;
}

.content-teks tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Image enhancements */
.content-teks img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-teks figure {
    margin: 20px 0;
    text-align: center;
}

.content-teks figure img {
    margin-bottom: 10px;
}

.content-teks figcaption {
    display: block !important;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    margin-top: 8px;
}

/* Horizontal rule */
.content-teks hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 30px 0;
}

/* Text alignment */
.content-teks .text-left {
    text-align: left;
}

.content-teks .text-center {
    text-align: center;
}

.content-teks .text-right {
    text-align: right;
}

.content-teks .text-justify {
    text-align: justify;
}

/* Link enhancements */
.content-teks a:hover {
    color: rgb(150, 0, 200);
    text-decoration: underline;
}

/* Nested lists */
.content-teks ul ul,
.content-teks ol ol,
.content-teks ul ol,
.content-teks ol ul {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
}

/* Definition lists */
.content-teks dl {
    margin-bottom: 20px;
}

.content-teks dt {
    font-weight: bold;
    margin-bottom: 5px;
}

.content-teks dd {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
    .content-teks h1 {
        font-size: 20px;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .content-teks h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .content-teks h5 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .content-teks h6 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .content-teks span {
        font-size: 12px;
    }

    .content-teks small {
        font-size: 11px;
    }

    .content-teks blockquote {
        margin: 12px 0;
        padding: 10px 14px;
        font-size: 12px;
    }

    .content-teks table {
        font-size: 12px;
    }

    .content-teks th,
    .content-teks td {
        padding: 6px 10px;
        font-size: 12px;
    }

    .content-teks pre {
        padding: 10px;
        font-size: 11px;
        line-height: 1.4;
    }

    .content-teks code {
        font-size: 11px;
        padding: 1px 4px;
    }

    .content-teks figcaption {
        font-size: 11px;
    }

    .content-teks ul ul,
    .content-teks ol ol,
    .content-teks ul ol,
    .content-teks ol ul {
        margin-left: 15px;
    }

    .content-teks dd {
        margin-left: 15px;
        font-size: 12px;
    }

    .content-teks dt {
        font-size: 13px;
    }

    .content-teks mark {
        font-size: 12px;
        padding: 1px 3px;
    }
}
