/* Theme Studio — İçerik Alanı (home.rich_text) */

.tf-richtext-section {
    width: 100%;
    font-family: var(--tf-font-family, inherit);
    position: relative;
    z-index: 0;
    height: auto;
    overflow: visible;
}

.tf-section[data-tf-type="home.rich_text"] {
    position: relative;
    z-index: 0;
    height: auto;
    overflow: visible;
}

.tf-richtext__block {
    display: flow-root;
    max-width: 100%;
}

.tf-richtext__block[data-overflow="scroll"] .tf-richtext__body,
.tf-richtext__row[data-overflow="scroll"] .tf-richtext__body {
    max-height: var(--tf-richtext-scroll-height, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #c4b8b0 transparent;
}
.tf-richtext__block[data-overflow="scroll"] .tf-richtext__body::-webkit-scrollbar,
.tf-richtext__row[data-overflow="scroll"] .tf-richtext__body::-webkit-scrollbar {
    width: 6px;
}
.tf-richtext__block[data-overflow="scroll"] .tf-richtext__body::-webkit-scrollbar-thumb,
.tf-richtext__row[data-overflow="scroll"] .tf-richtext__body::-webkit-scrollbar-thumb {
    background: #c4b8b0;
    border-radius: 6px;
}

.tf-richtext {
    text-align: inherit;
    color: var(--tf-heading-color, #1a1a18);
    overflow-wrap: break-word;
}

.tf-richtext__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tf-eyebrow-color, #3f3b37);
    line-height: 1.4;
}

.tf-richtext__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tf-richtext-accent, #c4a35a);
    flex: 0 0 auto;
}

.tf-richtext__heading {
    margin: 0 0 18px;
    font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.15;
    text-wrap: balance;
    color: var(--tf-heading-color, #1a1a18);
}

.tf-richtext__body {
    color: var(--tf-body-color, #2c2c2c);
    font-size: 16px;
    line-height: 1.8;
    /* Contain floated CKEditor images so following sections never slide underneath */
    display: flow-root;
    max-width: 100%;
}

.tf-richtext__body > *:first-child { margin-top: 0; }
.tf-richtext__body > *:last-child { margin-bottom: 0; }

.tf-richtext__body p { margin: 0 0 16px; color: inherit; }

.tf-richtext__body h1,
.tf-richtext__body h2,
.tf-richtext__body h3,
.tf-richtext__body h4,
.tf-richtext__body h5,
.tf-richtext__body h6 {
    color: var(--tf-heading-color, #1a1a18);
    line-height: 1.25;
    margin: 28px 0 12px;
    letter-spacing: -.02em;
}

.tf-richtext__body h1 { font-size: 2rem; }
.tf-richtext__body h2 { font-size: 1.625rem; }
.tf-richtext__body h3 { font-size: 1.35rem; }
.tf-richtext__body h4 { font-size: 1.15rem; }
.tf-richtext__body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tf-richtext__body ul,
.tf-richtext__body ol {
    margin: 0 0 16px;
    padding-left: 1.2em;
}
.tf-richtext__body li { margin: 0 0 8px; }
.tf-richtext__body blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--tf-richtext-accent, #c4a35a);
    font-style: italic;
    color: var(--tf-heading-color, #1a1a18);
}
.tf-richtext__body img,
.tf-richtext__body figure,
.tf-richtext__body .image,
.tf-richtext__body .image_resized {
    max-width: 100%;
    height: auto;
    display: block;
    float: none !important;
    margin-inline: auto;
}
.tf-richtext__body figure,
.tf-richtext__body .image {
    margin: 16px auto;
}
.tf-richtext__body img {
    border-radius: 8px;
}
.tf-richtext__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.tf-richtext__body table td,
.tf-richtext__body table th {
    border: 1px solid var(--tf-color-border, var(--line, #e8e2da));
    padding: 10px 12px;
    vertical-align: top;
}
.tf-richtext__body table th {
    font-weight: 600;
    background: rgba(26, 26, 24, .04);
}
.tf-richtext__body hr {
    border: 0;
    border-top: 1px solid var(--tf-color-border, var(--line, #e8e2da));
    margin: 28px 0;
}
.tf-richtext__body iframe,
.tf-richtext__body video {
    max-width: 100%;
    border-radius: 8px;
}

.tf-richtext__blocks {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 48px);
}

/* 1 · Klasik merkez --------------------------------------------------- */
.tf-section[data-tf-type="home.rich_text"] .tf-richtext.tf-richtext--classic,
.tf-section[data-tf-type="home.rich_text"] .tf-richtext.tf-richtext--quote,
.tf-section[data-tf-type="home.rich_text"] .tf-richtext.tf-richtext--card {
    display: block;
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
    min-width: 0;
}
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--classic .tf-richtext__block,
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--quote .tf-richtext__block,
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--card .tf-richtext__block {
    width: 100%;
    max-width: var(--tf-richtext-max-width, 720px) !important;
    margin-inline: auto;
    box-sizing: border-box;
}
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--classic .tf-richtext__eyebrow,
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--quote .tf-richtext__eyebrow,
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--card .tf-richtext__eyebrow {
    max-width: var(--tf-richtext-max-width, 720px);
    box-sizing: border-box;
}
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--card .tf-richtext__panel {
    width: 100%;
    /* Kart daha geniş dursun; slider değeri + offset ile ağırlık kazanır */
    max-width: min(100%, calc(var(--tf-richtext-max-width, 720px) + 280px)) !important;
    margin-inline: auto;
    box-sizing: border-box;
}
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--card .tf-richtext__block,
.tf-section[data-tf-type="home.rich_text"] .tf-richtext--card .tf-richtext__eyebrow {
    max-width: none !important;
    width: 100%;
    margin-inline: 0;
}
.tf-richtext--classic {
    text-align: center;
}
.tf-richtext--classic .tf-richtext__eyebrow {
    justify-content: center;
}
.tf-richtext--classic .tf-richtext__block:first-child .tf-richtext__heading {
    font-size: clamp(30px, 4.2vw, 52px);
}
.tf-richtext--classic .tf-richtext__block:first-child .tf-richtext__heading:not(:empty)::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    margin: 20px auto 0;
    background: var(--tf-richtext-accent, #c4a35a);
}
.tf-richtext--classic .tf-richtext__block:first-child .tf-richtext__heading:empty,
.tf-richtext--classic .tf-richtext__block:first-child .tf-richtext__heading[data-tf-empty="1"] {
    margin-bottom: 0;
}
.tf-richtext--classic .tf-richtext__block:first-child .tf-richtext__heading:empty::after,
.tf-richtext--classic .tf-richtext__block:first-child .tf-richtext__heading[data-tf-empty="1"]::after,
.tf-richtext--classic .tf-richtext__block:first-child .tf-richtext__heading:has(> br:only-child)::after {
    content: none;
    display: none;
}
.tf-richtext--classic .tf-richtext__block:not(:first-child) .tf-richtext__heading {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 12px;
}
.tf-richtext--classic .tf-richtext__body {
    margin-top: 8px;
}

/* 3 · Alıntı ---------------------------------------------------------- */
.tf-richtext--quote {
    text-align: center;
    position: relative;
}
.tf-richtext--quote .tf-richtext__mark {
    display: block;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(56px, 9vw, 88px);
    line-height: .55;
    color: var(--tf-richtext-accent, #c4a35a);
    opacity: .55;
    margin: -.08em 0 .1em;
    pointer-events: none;
}
.tf-richtext--quote .tf-richtext__eyebrow {
    justify-content: center;
}
.tf-richtext--quote .tf-richtext__block:first-child .tf-richtext__heading {
    font-size: clamp(28px, 4.4vw, 46px);
    font-style: italic;
    font-weight: 400;
    max-width: min(18ch, 100%);
    margin-inline: auto;
}
.tf-richtext--quote .tf-richtext__block:not(:first-child) .tf-richtext__heading {
    font-size: clamp(22px, 3vw, 32px);
    font-style: normal;
    max-width: none;
}
.tf-richtext--quote .tf-richtext__body {
    margin-inline: auto;
    font-size: 15px;
}

/* 4 · Kart ------------------------------------------------------------ */
.tf-richtext__panel {
    position: relative;
    padding: clamp(40px, 5.5vw, 68px) clamp(36px, 5vw, 72px);
    background: var(--tf-richtext-card-bg, var(--tf-card-bg, rgba(255, 255, 255, .72)));
    border: 1px solid var(--tf-color-border, var(--line, #e8e2da));
    border-radius: 22px;
    box-shadow:
        0 4px 16px rgba(26, 26, 24, .04),
        0 24px 64px rgba(26, 26, 24, .12);
}
.tf-richtext__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--tf-richtext-accent, #c4a35a);
    border-radius: 0 0 2px 2px;
}
.tf-richtext--card .tf-richtext__heading {
    font-size: clamp(28px, 3.6vw, 42px);
}

/* 5 · Manifesto ------------------------------------------------------- */
.tf-richtext--manifesto {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 48px);
    max-width: 100%;
}
.tf-richtext--manifesto .tf-richtext__row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: end;
}
.tf-richtext--manifesto .tf-richtext__row > * {
    min-width: 0;
}
.tf-richtext__manifesto-head {
    position: relative;
    padding-left: 22px;
}
.tf-richtext__manifesto-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--tf-richtext-accent, #c4a35a);
}
.tf-richtext--manifesto .tf-richtext__row .tf-richtext__heading {
    font-size: clamp(36px, 5.4vw, 68px);
    margin-bottom: 0;
    letter-spacing: -.04em;
    max-width: 12ch;
}
.tf-richtext--manifesto .tf-richtext__blocks--rest {
    max-width: 720px;
}
.tf-richtext--manifesto .tf-richtext__blocks--rest .tf-richtext__heading {
    font-size: clamp(24px, 3vw, 36px);
    max-width: none;
}
.tf-richtext--manifesto .tf-richtext__body {
    font-size: 16px;
    padding-bottom: 6px;
}

@media (max-width: 767.98px) {
    .tf-richtext--manifesto .tf-richtext__row {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }
    .tf-richtext--manifesto .tf-richtext__row .tf-richtext__heading {
        max-width: none;
    }
}
