/*
 * MALITUR - Centered editorial SEO card (v2)
 * Scope: only the SEO article at the bottom of desktop tour search pages.
 * Works with HTML generated by Quill / TinyMCE, including headings and lists.
 * No JavaScript required.
 */

.category-seo-content {
    --seo-text: #35404d;
    --seo-heading: #202a36;
    --seo-muted: #66717f;
    --seo-border: #e4e8ee;
    --seo-link: #295f94;

    /* Dis bolum temanin varsayilan beyaz arka planinda kalir. */
    background: transparent !important;
    border-top: 0 !important;
    width: 100%;
    max-width: none !important;
    margin-top: 0;
    padding-top: 38px !important;
    padding-bottom: 72px !important;
}

/* Yalnizca ortadaki makale kutusu renkli; Quill/Bootstrap siniflarini bastir. */
.category-seo-content .category-seo-body.ql-editor {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 48px 56px 52px !important;
    border: 1px solid #e7ebf0 !important;
    border-radius: 14px !important;
    background: #f6f8fb !important;
    box-shadow: 0 5px 20px rgba(30, 46, 65, 0.035);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0;
    color: var(--seo-text);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    overflow: visible;
    text-align: left;
}

/* Keep heading sizes balanced even when Quill's theme styles are loaded. */
.category-seo-content .category-seo-body.ql-editor h2,
.category-seo-content .category-seo-body.ql-editor h3,
.category-seo-content .category-seo-body.ql-editor h4,
.category-seo-content .category-seo-body.ql-editor h5,
.category-seo-content .category-seo-body.ql-editor h6 {
    font-family: inherit;
    color: var(--seo-heading) !important;
    font-style: normal;
    letter-spacing: -0.018em;
    text-transform: none;
    text-align: left;
}

.category-seo-content .category-seo-body.ql-editor h2 {
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.38;
    margin: 38px 0 14px !important;
}

.category-seo-content .category-seo-body.ql-editor h3 {
    font-size: 20px !important;
    font-weight: 650 !important;
    line-height: 1.43;
    margin: 30px 0 12px !important;
}

.category-seo-content .category-seo-body.ql-editor h4 {
    font-size: 17px !important;
    font-weight: 650 !important;
    line-height: 1.5;
    margin: 24px 0 10px !important;
}

.category-seo-content .category-seo-body.ql-editor h5,
.category-seo-content .category-seo-body.ql-editor h6 {
    font-size: 15.5px !important;
    font-weight: 650 !important;
    line-height: 1.5;
    margin: 20px 0 9px !important;
}

.category-seo-content .category-seo-body.ql-editor > :first-child {
    margin-top: 0 !important;
}

.category-seo-content .category-seo-body.ql-editor p {
    margin: 0 0 16px !important;
    padding: 0;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    color: inherit;
}

/* Keep the opening paragraph slightly more spacious, not oversized. */
.category-seo-content .category-seo-body.ql-editor h2 + p {
    margin-top: 2px !important;
}

.category-seo-content .category-seo-body.ql-editor strong,
.category-seo-content .category-seo-body.ql-editor b {
    font-weight: 650;
    color: #253240;
}

.category-seo-content .category-seo-body.ql-editor a {
    color: var(--seo-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition: color 150ms ease;
}

.category-seo-content .category-seo-body.ql-editor a:hover,
.category-seo-content .category-seo-body.ql-editor a:focus-visible {
    color: #173f6c;
}

.category-seo-content .category-seo-body.ql-editor ul,
.category-seo-content .category-seo-body.ql-editor ol {
    margin: 6px 0 20px !important;
    padding-left: 28px !important;
    line-height: 1.82;
}

.category-seo-content .category-seo-body.ql-editor li {
    padding-left: 2px;
    margin-bottom: 8px;
}

.category-seo-content .category-seo-body.ql-editor li::marker {
    color: #697a8c;
}

/* Hide only content-free editor paragraphs; keep real article text untouched. */
.category-seo-content .category-seo-body.ql-editor p:empty,
.category-seo-content .category-seo-body.ql-editor p:has(> br:only-child) {
    display: none;
}

.category-seo-content .category-seo-body.ql-editor blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid #b5c6d5;
    color: #566474;
    background: transparent;
    font-style: normal;
}

.category-seo-content .category-seo-body.ql-editor hr {
    border: 0;
    border-top: 1px solid var(--seo-border);
    opacity: 1;
    margin: 30px 0;
}

.category-seo-content .category-seo-body.ql-editor img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 22px auto;
}

.category-seo-content .category-seo-body.ql-editor figure,
.category-seo-content .category-seo-body.ql-editor .ql-video {
    max-width: 100%;
}

.category-seo-content .category-seo-body.ql-editor table {
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 14px;
    background: transparent;
}

.category-seo-content .category-seo-body.ql-editor th,
.category-seo-content .category-seo-body.ql-editor td {
    border: 1px solid #e0e6ec;
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
}

.category-seo-content .category-seo-body.ql-editor th {
    color: var(--seo-heading);
    background: #edf1f5;
    font-weight: 650;
}

@media (max-width: 991.98px) {
    .category-seo-content {
        padding-top: 32px !important;
        padding-bottom: 54px !important;
    }

    .category-seo-content .category-seo-body.ql-editor {
        max-width: 100%;
        padding: 38px 36px 42px !important;
    }
}

@media (max-width: 575.98px) {
    .category-seo-content {
        margin-top: 0;
        padding-top: 20px !important;
        padding-bottom: 40px !important;
    }

    .category-seo-content .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .category-seo-content .category-seo-body.ql-editor {
        padding: 26px 21px 30px !important;
        border-radius: 11px !important;
        font-size: 14.5px;
        line-height: 1.84;
    }

    .category-seo-content .category-seo-body.ql-editor h2 {
        font-size: 22px !important;
        line-height: 1.38;
        margin: 30px 0 13px !important;
    }

    .category-seo-content .category-seo-body.ql-editor h3 {
        font-size: 18px !important;
        margin: 24px 0 11px !important;
    }

    .category-seo-content .category-seo-body.ql-editor h4 {
        font-size: 16px !important;
    }

    .category-seo-content .category-seo-body.ql-editor p {
        margin-bottom: 15px !important;
    }

    .category-seo-content .category-seo-body.ql-editor ul,
    .category-seo-content .category-seo-body.ql-editor ol {
        padding-left: 23px !important;
    }

    .category-seo-content .category-seo-body.ql-editor table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-seo-content .category-seo-body.ql-editor a {
        transition: none;
    }
}
