﻿/* =====================================================
   CONTENT SECTION – GLOBAL
===================================================== */
.content-section {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    padding: 2rem 1rem;
    background-color: #fdfdfd;
    box-sizing: border-box;
}

    /* =====================================================
   HEADINGS
===================================================== */
    .content-section h2 {
        font-size: 1.6rem;
        font-weight: 600;
        color: #0d47a1;
        margin: 2rem 0 1rem;
        padding-left: 10px;
        border-left: 4px solid #2196f3;
    }

    .content-section h3 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #0d47a1;
        margin: 1.5rem 0 0.8rem;
    }

    .content-section h4,
    .content-section h5 {
        font-weight: 500;
        color: #333;
        margin: 1.2rem 0 0.6rem;
    }

    /* =====================================================
   LINKS
===================================================== */
    .content-section a {
        color: #2196f3;
        text-decoration: none;
        word-break: break-word;
        transition: color 0.3s ease;
    }

        .content-section a:hover {
            color: #0d47a1;
            text-decoration: underline;
        }

    /* =====================================================
   CODE BLOCKS
===================================================== */
    .content-section .ql-code-block-container,
    .content-section pre code,
    .content-section pre.code-block {
        display: block;
        background: #f0f4f8;
        padding: 1rem;
        margin: 1rem 0 1.5rem;
        border-radius: 8px;
        border: 1px solid #cfd8dc;
        overflow-x: auto;
        font-size: 0.95rem;
        line-height: 1.6;
        font-family: 'Fira Code', Consolas, monospace;
        color: #d32f2f;
    }

        .content-section .ql-code-block-container > .ql-code-block {
            margin: 0;
        }

    /* =====================================================
   INLINE CODE (LISTS / TEXT)
===================================================== */
    .content-section li code,
    .content-section table code {
        background: #e3f2fd;
        padding: 3px 6px;
        border-radius: 6px;
        font-family: 'Fira Code', Consolas, monospace;
        font-size: 0.92rem;
        color: #0d47a1;
        display: inline-block;
        margin-top: 0.2rem;
    }

    /* =====================================================
   MEDIA (IMAGE / VIDEO / AUDIO)
===================================================== */
    .content-section img {
        max-width: 100%;
        height: auto;
        margin: 1rem auto;
        display: block;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .content-section video {
        width: 100%;
        max-width: 720px;
        margin: 1rem auto;
        display: block;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .content-section audio {
        width: 100%;
        max-width: 500px;
        margin: 1rem auto;
        display: block;
    }

    /* =====================================================
   TABLES
===================================================== */
    .content-section table {
        width: 100%;
        margin: 2rem 0;
        border-collapse: separate;
        border-spacing: 0;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    }

        .content-section table th {
            background: linear-gradient(90deg, #2196f3, #0d47a1);
            color: #fff;
            padding: 14px 16px;
            text-align: left;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .content-section table td {
            padding: 12px 16px;
            border-bottom: 1px solid #e0e0e0;
        }

        .content-section table tr:nth-child(even) {
            background-color: #f7f9fc;
        }

        .content-section table tr:hover {
            background-color: #e3f2fd;
        }

        .content-section table caption {
            caption-side: top;
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #0d47a1;
        }

    /* =====================================================
   BULLET & NUMBERED LISTS
===================================================== */
    .content-section ul,
    .content-section ol {
        margin: 0.6rem 0 1rem 1.2rem;
        padding-left: 1rem;
        line-height: 1.65;
    }

    /* Hide Quill UI dots */
    .content-section .ql-ui {
        display: none;
    }

    /* MAIN BULLET */
    .content-section ul > li,
    .content-section li[data-list="bullet"] {
        list-style: disc;
        margin-bottom: 0.45rem;
        font-size: 1rem;
    }

    /* SUB BULLET */
    .content-section ul ul > li {
        list-style: circle;
        font-size: 0.95rem;
        color: #333;
    }

    /* SUB-SUB BULLET */
    .content-section ul ul ul > li {
        list-style: square;
        font-size: 0.9rem;
        color: #444;
    }

    /* NUMBERED LIST */
    .content-section ol > li {
        list-style: decimal;
        margin-bottom: 0.45rem;
    }

    .content-section ol ol > li {
        list-style: lower-alpha;
    }

    /* STRONG TEXT IN LISTS */
    .content-section li strong {
        color: #0d47a1;
        font-weight: 600;
    }

    /* =====================================================
   QUILL INDENT SUPPORT
===================================================== */
    .content-section li.ql-indent-1 {
        margin-left: 1.4rem;
        list-style: "→ ";
        font-size: 0.95rem;
        color: #37474f;
    }

    .content-section li.ql-indent-2 {
        margin-left: 2.2rem;
        list-style: "➤ ";
        font-size: 0.9rem;
    }

    /* =====================================================
   LIST + TABLE SPACING
===================================================== */
    .content-section ul + table,
    .content-section ol + table {
        margin-top: 0.8rem;
    }

    /* =====================================================
   EXAMPLE LABEL
===================================================== */
    .content-section p strong:first-child {
        display: inline-block;
        margin-bottom: 0.3rem;
        color: #0d47a1;
    }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .content-section {
        padding: 1.5rem;
    }

        .content-section h2 {
            font-size: 1.4rem;
        }

        .content-section h3 {
            font-size: 1.25rem;
        }
}

@media (max-width: 768px) {
    .content-section h2 {
        font-size: 1.3rem;
    }

    .content-section h3 {
        font-size: 1.15rem;
    }

    .content-section table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem 0.5rem;
    }

        .content-section h2 {
            font-size: 1.2rem;
        }

        .content-section h3 {
            font-size: 1.05rem;
        }
}
