/* =========================================================
   ESPAVEL - TEXT CONTENT
========================================================= */

.espa-text-content {
    position: relative;

    width: 100%;

    margin:
            34px
            0
            42px;
}


/* =========================================================
   INNER
========================================================= */

.espa-text-content__inner {
    position: relative;

    width: 100%;

    padding:
            34px
            38px;

    border:
            1px solid
            color-mix(
                    in srgb,
                    var(--espa-border) 80%,
                    transparent
            );

    border-radius: 22px;

    background:
            var(--espa-surface);

    box-shadow:
            0
            8px
            28px
            rgba(15, 23, 42, .045);
}


/* =========================================================
   HEADER
========================================================= */

.espa-text-content__header {
    margin-bottom: 24px;
}


/* =========================================================
   TITLE
========================================================= */

.espa-text-content__title {
    max-width: 1050px;

    margin: 0;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-heading);

    font-size:
            clamp(
                    26px,
                    2.2vw,
                    34px
            );

    font-weight:
            var(--font-weight-heading);

    line-height: 1.2;

    letter-spacing: -.025em;
}


/* =========================================================
   BODY
========================================================= */

.espa-text-content__body {
    max-width: 100%;

    color:
            var(--espa-muted);

    font-family:
            var(--font-family-body);

    font-size: 14px;

    font-weight:
            var(--font-weight-body);

    line-height: 1.78;

    overflow-wrap: anywhere;
}


/* =========================================================
   PARAGRAPH
========================================================= */

.espa-text-content__body p {
    margin:
            0
            0
            17px;
}


.espa-text-content__body p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   RICH TEXT HEADINGS
========================================================= */

.espa-text-content__body h1,
.espa-text-content__body h2,
.espa-text-content__body h3,
.espa-text-content__body h4,
.espa-text-content__body h5,
.espa-text-content__body h6 {
    margin:
            30px
            0
            13px;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-heading);

    font-weight:
            var(--font-weight-heading);

    line-height: 1.3;

    letter-spacing: -.015em;
}


.espa-text-content__body h1:first-child,
.espa-text-content__body h2:first-child,
.espa-text-content__body h3:first-child,
.espa-text-content__body h4:first-child {
    margin-top: 0;
}


.espa-text-content__body h1 {
    font-size: 28px;
}


.espa-text-content__body h2 {
    font-size: 24px;
}


.espa-text-content__body h3 {
    font-size: 20px;
}


.espa-text-content__body h4 {
    font-size: 17px;
}


.espa-text-content__body h5,
.espa-text-content__body h6 {
    font-size: 15px;
}


/* =========================================================
   STRONG
========================================================= */

.espa-text-content__body strong,
.espa-text-content__body b {
    color:
            color-mix(
                    in srgb,
                    var(--espa-heading) 94%,
                    transparent
            );

    font-weight: 700;
}


/* =========================================================
   EMPHASIS
========================================================= */

.espa-text-content__body em,
.espa-text-content__body i {
    font-style: italic;
}


/* =========================================================
   LINKS
========================================================= */

.espa-text-content__body a {
    color:
            var(--espa-primary);

    font-weight: 600;

    text-decoration:
            underline;

    text-decoration-color:
            color-mix(
                    in srgb,
                    var(--espa-primary) 35%,
                    transparent
            );

    text-underline-offset: 3px;

    transition:
            color .2s ease,
            text-decoration-color .2s ease;
}


.espa-text-content__body a:hover {
    color:
            var(--espa-primary-hover);

    text-decoration-color:
            currentColor;
}


/* =========================================================
   LISTS
========================================================= */

.espa-text-content__body ul,
.espa-text-content__body ol {
    margin:
            15px
            0
            20px;

    padding-left: 24px;
}


.espa-text-content__body li {
    margin-bottom: 8px;

    padding-left: 3px;
}


.espa-text-content__body li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.espa-text-content__body blockquote {
    position: relative;

    margin:
            24px
            0;

    padding:
            20px
            22px
            20px
            25px;

    border-left:
            4px solid
            var(--espa-primary);

    border-radius:
            0
            14px
            14px
            0;

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 5%,
                    var(--espa-surface)
            );

    color:
            var(--espa-heading);

    font-style: italic;
}


/* =========================================================
   HORIZONTAL RULE
========================================================= */

.espa-text-content__body hr {
    margin:
            30px
            0;

    border: 0;

    border-top:
            1px solid
            var(--espa-border);
}


/* =========================================================
   IMAGES FROM RICHTEXT
========================================================= */

.espa-text-content__body img {
    display: block;

    max-width: 100%;

    height: auto;

    margin:
            24px
            auto;

    border-radius: 16px;
}


/* =========================================================
   TABLE
========================================================= */

.espa-text-content__body table {
    width: 100%;

    margin:
            24px
            0;

    border-collapse: collapse;

    font-size: 13px;
}


.espa-text-content__body th,
.espa-text-content__body td {
    padding:
            11px
            13px;

    border:
            1px solid
            var(--espa-border);

    text-align: left;

    vertical-align: top;
}


.espa-text-content__body th {
    background:
            var(--espa-surface-secondary);

    color:
            var(--espa-heading);

    font-weight: 700;
}


/* =========================================================
   QUILL ALIGNMENT
========================================================= */

.espa-text-content__body .ql-align-center {
    text-align: center;
}


.espa-text-content__body .ql-align-right {
    text-align: right;
}


.espa-text-content__body .ql-align-justify {
    text-align: justify;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .espa-text-content {
        margin:
                30px
                0
                36px;
    }


    .espa-text-content__inner {
        padding:
                30px
                30px;
    }


    .espa-text-content__header {
        margin-bottom: 20px;
    }


    .espa-text-content__body {
        font-size: 13px;

        line-height: 1.72;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .espa-text-content {
        margin:
                22px
                0
                28px;
    }


    .espa-text-content__inner {
        padding:
                22px
                18px;

        border-radius: 17px;

        box-shadow:
                0
                6px
                20px
                rgba(15, 23, 42, .04);
    }


    .espa-text-content__header {
        margin-bottom: 17px;
    }


    .espa-text-content__title {
        font-size: 22px;

        line-height: 1.3;

        letter-spacing: -.02em;
    }


    .espa-text-content__body {
        font-size: 12px;

        line-height: 1.72;
    }


    .espa-text-content__body p {
        margin-bottom: 14px;
    }


    .espa-text-content__body h1 {
        font-size: 23px;
    }


    .espa-text-content__body h2 {
        font-size: 20px;
    }


    .espa-text-content__body h3 {
        font-size: 17px;
    }


    .espa-text-content__body h4 {
        font-size: 15px;
    }


    .espa-text-content__body h1,
    .espa-text-content__body h2,
    .espa-text-content__body h3,
    .espa-text-content__body h4 {
        margin:
                24px
                0
                10px;
    }


    .espa-text-content__body blockquote {
        margin:
                18px
                0;

        padding:
                16px
                16px
                16px
                18px;
    }


    /*
     * Geniş tablolar telefon ekranını bozmasın.
     */
    .espa-text-content__body table {
        display: block;

        max-width: 100%;

        overflow-x: auto;

        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
    }

}