@tailwind base;
@tailwind components;
@tailwind utilities;

/* Inter Font - Self-hosted */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/inter-latin-300-normal.woff2') format('woff2'), url('../fonts/inter-latin-300-normal.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'), url('../fonts/inter-latin-400-normal.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'), url('../fonts/inter-latin-500-normal.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'), url('../fonts/inter-latin-600-normal.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'), url('../fonts/inter-latin-700-normal.woff') format('woff'); }

/* Manual Tailwind utilities for dropdown icons */
/* renk1 mavi: #145a92; renk2 koyu gri: #393738 */
.w-2\.5 {
    width: 0.625rem !important; /* 10px */
}
.h-2\.5 {
    height: 0.625rem !important; /* 10px */
}
.w-3 {
    width: 0.75rem !important; /* 12px */
}
.h-3 {
    height: 0.75rem !important; /* 12px */
}
.ms-3 {
    margin-left: 0.75rem !important; /* 12px */
}

/* Global Font Override - Inter with system fallback */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
}
.el-step__icon.is-text {
    background: #f3f4f6;
    border: 20px solid #f3f4f6;
}

.el-step.is-horizontal .el-step__line {
    height: 5px;
    left: 0;
    right: 0;
    top: 20px;
    background-color: #f3f4f6;
}

.el-step__icon {
    background: #f3f4f6;
    border-radius: 100%;
    width: 45px !important;
    height: 45px !important;
}

.el-step__line-inner {
    border-width: 2px !important;
}


body .particles-js-canvas-el {
    position: fixed !important;
    top: 0 !important;
    z-index: 1 !important;
}

.banner .particles-js-canvas-el {
    position: absolute !important;
    top: 0 !important;
    z-index: 0;
}

body #app {
    position: relative;
    z-index: auto;
}

body .loading {
    background-color: #ffffffe6;
    margin: 0;
    transition: opacity 0.3s;
    z-index: 2000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

body .loading .image {
    text-align: center;
    width: 150px;
    border-radius: 50%;
}


.el-popper {
    z-index: 9999 !important;
}

.domainmanage1, .domainmanage2, .domainmanage3 {
    fill: none;
    stroke: #135b93;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    stroke-width: 3 !important;
}

svg #svg-concept {
    stroke: #135b93;
}

svg #svg-ico {
    fill: #135b93;
}

.animate-spin-slow {
    animation: spin 4s linear infinite;
}

.animate-spin-reverse-slower {
    animation: spin-reverse 6s linear infinite;
}

@keyframes spin-reverse {
    to {
        transform: rotate(-1turn)
    }
}

@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}

.el-overlay {
    z-index: 49 !important;
}

/* Custom Brand Colors */
:root {
    --brand-primary: #145a92;
    --brand-secondary: #393738;
    --brand-primary-light: #1e6ba8;
    --brand-primary-dark: #0f4a7a;
    --brand-secondary-light: #4a4849;
    --brand-secondary-dark: #2a2829;
}

/* Brand Gradient Classes */
.bg-brand-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
}

.bg-brand-gradient-secondary {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-light) 100%);
}

.bg-brand-gradient-mixed {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

/* Brand Color Classes */
.text-brand-primary {
    color: var(--brand-primary);
}

.text-brand-secondary {
    color: var(--brand-secondary);
}

.bg-brand-primary {
    background-color: var(--brand-primary);
}

.bg-brand-secondary {
    background-color: var(--brand-secondary);
}

.border-brand-primary {
    border-color: var(--brand-primary);
}

.border-brand-secondary {
    border-color: var(--brand-secondary);
}

/* Brand Gradient Text Classes */
.text-brand-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-brand-gradient-reverse {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 50%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.el-step__icon.is-text {
    background: #f3f4f6;
    border: 20px solid #f3f4f6;
}

.el-step.is-horizontal .el-step__line {
    height: 5px;
    left: 0;
    right: 0;
    top: 20px;
    background-color: #f3f4f6;
}

.el-step__icon {
    background: #f3f4f6;
    border-radius: 100%;
    width: 45px !important;
    height: 45px !important;
}

.el-step__line-inner {
    border-width: 2px !important;
}


body .particles-js-canvas-el {
    position: fixed !important;
    top: 0 !important;
    z-index: 1 !important;
}

.banner .particles-js-canvas-el {
    position: absolute !important;
    top: 0 !important;
    z-index: 0;
}

body #app {
    position: relative;
    z-index: auto;
}

body .loading {
    background-color: #ffffffe6;
    margin: 0;
    transition: opacity 0.3s;
    z-index: 2000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

body .loading .image {
    text-align: center;
    width: 150px;
    border-radius: 50%;
}


.el-popper {
    z-index: 9999 !important;
}

.domainmanage1, .domainmanage2, .domainmanage3 {
    fill: none;
    stroke: #135b93;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    stroke-width: 3 !important;
}

svg #svg-concept {
    stroke: #135b93;
}

svg #svg-ico {
    fill: #135b93;
}

.animate-spin-slow {
    animation: spin 4s linear infinite;
}

.animate-spin-reverse-slower {
    animation: spin-reverse 6s linear infinite;
}

@keyframes spin-reverse {
    to {
        transform: rotate(-1turn)
    }
}

@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}

.el-overlay {
    z-index: 49 !important;
}
/* ============================================================
   Article / Blog Content Typography
   Tailwind preflight tum HTML elementlerini sifirlar.
   CKEditor 5 ciktisindaki h1-h6, ul, ol, blockquote, table,
   code, pre vb. icin kapsamli tipografi tanimlari.
   ============================================================ */

.article-prose,
.content-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
}
.article-prose > *:first-child,
.content-text > *:first-child { margin-top: 0 !important; }
.article-prose > *:last-child,
.content-text > *:last-child  { margin-bottom: 0 !important; }

.article-prose p,
.content-text p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4,
.article-prose h5,
.article-prose h6,
.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin-top: 2em;
    margin-bottom: 0.6em;
    letter-spacing: -0.01em;
}
.article-prose h1,
.content-text h1 { font-size: 2rem; }
.article-prose h2,
.content-text h2 { font-size: 1.5rem; }
.article-prose h3,
.content-text h3 { font-size: 1.25rem; }
.article-prose h4,
.content-text h4 { font-size: 1.125rem; }
.article-prose h5,
.content-text h5 { font-size: 1rem; }
.article-prose h6,
.content-text h6 { font-size: 0.9375rem; color: #64748b; }

.article-prose a,
.content-text a {
    color: #145a92;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}
.article-prose a:hover,
.content-text a:hover { color: #0f4a7a; text-decoration-thickness: 2px; }

.article-prose strong,
.article-prose b,
.content-text strong,
.content-text b { font-weight: 700; color: #0f172a; }
.article-prose em,
.article-prose i,
.content-text em,
.content-text i { font-style: italic; }

.article-prose ul,
.article-prose ol,
.content-text ul,
.content-text ol { margin-top: 1em; margin-bottom: 1em; padding-left: 1.75em; }
.article-prose > ul,
.article-prose > ol,
.content-text > ul,
.content-text > ol {
    clear: both;
}
.article-prose ul,
.content-text ul { list-style-type: disc; }
.article-prose ol,
.content-text ol { list-style-type: decimal; }
.article-prose ul ul,
.content-text ul ul { list-style-type: circle; }
.article-prose ul ul ul,
.content-text ul ul ul { list-style-type: square; }
.article-prose li,
.content-text li { margin-top: 0.08em; margin-bottom: 0.08em; line-height: 1.52; }
.article-prose li + li,
.content-text li + li { margin-top: 0.12em; }
.article-prose li::after,
.content-text li::after {
    content: '';
    display: block;
    clear: both;
}
.article-prose li > p,
.article-prose li p,
.content-text li > p,
.content-text li p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.52 !important;
}
.article-prose li > p + p,
.article-prose li p + p,
.content-text li > p + p,
.content-text li p + p {
    margin-top: 0.08em !important;
}
.article-prose li > ul,
.article-prose li > ol,
.content-text li > ul,
.content-text li > ol { margin-top: 0.08em; margin-bottom: 0.08em; }
.article-prose ul > li::marker,
.content-text ul > li::marker { color: #145a92; font-size: 1.15em; }
.article-prose ol > li::marker,
.content-text ol > li::marker { font-weight: 700; color: #145a92; }

/* Varsayilan blockquote: bilgi/info kutusu (mavi) */
.article-prose blockquote,
.content-text blockquote {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
    margin: 1.75em 0;
    padding: 0.875rem 1.125rem;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #1e3a5f;
    font-style: normal;
}
.article-prose blockquote::before,
.content-text blockquote::before { display: none; content: none; }
.article-prose blockquote p,
.content-text blockquote p { margin: 0.3em 0; font-style: normal; }
.article-prose blockquote p:first-child,
.content-text blockquote p:first-child { margin-top: 0; }
.article-prose blockquote p:last-child,
.content-text blockquote p:last-child  { margin-bottom: 0; }
.article-prose blockquote cite,
.content-text blockquote cite {
    display: block;
    margin-top: 0.75em;
    font-size: 0.875em;
    font-style: normal;
    font-weight: 600;
    color: #2563eb;
}

/* Uyari kutusu: CKEditor'de blockquote class="warning" ekle */
.article-prose blockquote.warning,
.content-text blockquote.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
    color: #78350f;
}

/* Basari kutusu */
.article-prose blockquote.success,
.content-text blockquote.success {
    border-left-color: #10b981;
    background: #f0fdf4;
    color: #14532d;
}

/* Tehlike/hata kutusu */
.article-prose blockquote.danger,
.content-text blockquote.danger {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #7f1d1d;
}

.article-prose code,
.content-text code {
    font-family: 'Menlo', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    color: #c7253e;
    border: 1px solid #e2e8f0;
    border-radius: 0.3rem;
    padding: 0.1em 0.45em;
}

.article-prose pre,
.content-text pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25em 1.5em;
    overflow-x: auto;
    margin: 1.75em 0;
    font-size: 0.875em;
    line-height: 1.7;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}
.article-prose pre code,
.content-text pre code { background: none; border: none; padding: 0; color: #e2e8f0; font-size: 1em; }

.article-prose hr,
.content-text hr { border: none; border-top: 2px solid #e2e8f0; margin: 2.5em 0; }

.article-prose > h2,
.article-prose > h3,
.article-prose > h4,
.article-prose > h5,
.article-prose > h6,
.article-prose > blockquote,
.article-prose > pre,
.article-prose > table,
.article-prose > hr,
.content-text > h2,
.content-text > h3,
.content-text > h4,
.content-text > h5,
.content-text > h6,
.content-text > blockquote,
.content-text > pre,
.content-text > table,
.content-text > hr {
    clear: both;
}

.article-prose img,
.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.75em auto;
    display: block;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.article-prose figure.image,
.content-text figure.image {
    display: block;
    max-width: 100%;
}
/* image_resized: display:table override */
.article-prose figure.image.image_resized,
.content-text figure.image.image_resized {
    display: block !important;
    max-width: 100%;
}
.article-prose figure.image img,
.content-text figure.image img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.article-prose figure.image.image-style-wrap-text,
.article-prose figure.image.image-style-side,
.article-prose figure.image.image-style-align-right,
.article-prose figure.image.image-style-align-block-right,
.content-text figure.image.image-style-wrap-text,
.content-text figure.image.image-style-side,
.content-text figure.image.image-style-align-right,
.content-text figure.image.image-style-align-block-right {
    float: right !important;
    clear: none !important;
    margin: 0.25rem 0 1rem 1.25rem !important;
}

.article-prose figure.image.image-style-align-left,
.article-prose figure.image.image-style-align-block-left,
.content-text figure.image.image-style-align-left,
.content-text figure.image.image-style-align-block-left {
    float: left !important;
    clear: none !important;
    margin: 0.25rem 1.25rem 1rem 0 !important;
}

.article-prose figure.image.image-style-break-text,
.content-text figure.image.image-style-break-text {
    float: none !important;
    clear: both !important;
    margin: 1rem auto !important;
    max-width: 100% !important;
}

@media (max-width: 767.98px) {
    .article-prose figure.image.image-style-wrap-text,
    .article-prose figure.image.image-style-side,
    .article-prose figure.image.image-style-align-right,
    .article-prose figure.image.image-style-align-block-right,
    .article-prose figure.image.image-style-align-left,
    .article-prose figure.image.image-style-align-block-left,
    .content-text figure.image.image-style-wrap-text,
    .content-text figure.image.image-style-side,
    .content-text figure.image.image-style-align-right,
    .content-text figure.image.image-style-align-block-right,
    .content-text figure.image.image-style-align-block-left,
    .content-text figure.image.image-style-align-left {
        float: none;
        clear: both;
        margin: 1rem auto;
        max-width: 100%;
    }
}

.article-prose figure,
.content-text figure { margin: 1.75em 0; text-align: center; }
.article-prose figcaption,
.content-text figcaption { font-size: 0.875em; color: #64748b; margin-top: 0.5em; font-style: italic; }

/* Mobil tablo: yatay scroll wrapper */
.article-prose table,
.content-text table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-collapse: collapse;
    margin: 1.75em 0;
    font-size: 0.9375em;
    border-radius: 0.625rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.article-prose thead,
.content-text thead { background: #145a92; }
.article-prose thead th,
.content-text thead th {
    font-weight: 600;
    padding: 0.75em 1.125em;
    text-align: left;
    font-size: 0.8125em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    border: none;
}
.article-prose tbody tr,
.content-text tbody tr { border-bottom: 1px solid #e2e8f0; }
.article-prose tbody tr:last-child,
.content-text tbody tr:last-child { border-bottom: none; }
.article-prose tbody tr:nth-child(even),
.content-text tbody tr:nth-child(even) { background: #f8fafc; }
.article-prose tbody tr:hover,
.content-text tbody tr:hover { background: #f0f7ff; transition: background 0.15s; }
.article-prose td,
.content-text td { padding: 0.875em 1.125em; color: #334155; vertical-align: top; border: none; }

/* Lead / kisa_icerik bolumu */
.content-lead { font-size: 1.125rem; line-height: 1.75; color: #475569; }
.content-lead p { margin-top: 0.75em; margin-bottom: 0.75em; }
.content-lead p:first-child { margin-top: 0; }
.content-lead p:last-child  { margin-bottom: 0; }
.content-lead strong,
.content-lead b { color: #1e293b; font-weight: 600; }
.content-lead a { color: #145a92; text-decoration: underline; text-underline-offset: 3px; }

/* Manset / Hero gorsel kabı */
.kb-hero-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 6;
    background: #0f172a;
}

.kb-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.04) 0%,
        rgba(15, 23, 42, 0.12) 55%,
        rgba(15, 23, 42, 0.46) 100%
    );
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .kb-hero-wrap {
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }
}

@media (min-width: 768px) {
    .kb-hero-wrap {
        border-radius: 1.1rem 1.1rem 0 0;
    }
}

/* Knowledgebase sayfasina daha kurumsal (SaaS) bir yuz vermek icin */
.kb-page-bg {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 520px at 8% -10%, rgba(20, 90, 146, 0.08), transparent 58%),
        radial-gradient(900px 460px at 100% 0%, rgba(30, 64, 175, 0.06), transparent 62%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fc 32%, #f8fafc 100%);
}

.kb-page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.28;
}

.kb-article-shell,
.kb-share-shell,
.kb-side-card {
    position: relative;
    overflow: hidden;
    border-color: #dbe7f5;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
}

.kb-article-shell::before,
.kb-share-shell::before,
.kb-side-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #0891b2 55%, #22c55e 100%);
    opacity: 0.9;
}

.kb-article-shell {
    border-radius: 1.15rem;
}

.kb-meta-row .inline-flex {
    border-radius: 999px;
}

/* Shared table of contents block for article/detail pages */
.kb-toc-box {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8e5f2;
    border-radius: 1rem;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(37, 99, 235, 0.10), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #f2f7fc 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 34px rgba(15, 23, 42, 0.06);
    padding: 0.9rem 0.95rem 0.95rem;
}

.kb-toc-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 52%, #22c55e 100%);
    opacity: 0.9;
}

.kb-toc-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.kb-toc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.8rem;
    color: #ffffff;
    background: linear-gradient(135deg, #145a92 0%, #1d74b3 100%);
    box-shadow: 0 8px 16px rgba(20, 90, 146, 0.16);
    flex-shrink: 0;
}

.kb-toc-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.kb-toc-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.kb-toc-heading {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
}

.kb-toc-list {
    display: grid;
    gap: 0.38rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kb-toc-item {
    list-style: none;
}

.kb-toc-item-child {
    padding-left: 0.75rem;
}

.kb-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.62rem;
    width: 100%;
    padding: 0.52rem 0.2rem 0.52rem 0.1rem;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: #334155;
    text-decoration: none;
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.kb-toc-link:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.55);
    color: #145a92;
}

.kb-toc-link.active {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.78) 0%, rgba(255, 255, 255, 0.35) 100%);
    color: #0f4a7a;
}

.kb-toc-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    flex-shrink: 0;
}

.kb-toc-link.active .kb-toc-index,
.kb-toc-link:hover .kb-toc-index {
    background: #145a92;
    color: #ffffff;
}

.kb-toc-link-text {
    display: block;
    min-width: 0;
    font-size: 0.91rem;
    line-height: 1.42;
    font-weight: 600;
}

.kb-toc-item-child .kb-toc-link {
    padding: 0.42rem 0.2rem 0.42rem 0.1rem;
}

.kb-toc-item-child .kb-toc-index {
    min-width: 1.4rem;
    height: 1.4rem;
    font-size: 0.62rem;
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 767.98px) {
    .kb-toc-box {
        padding: 0.82rem 0.82rem 0.88rem;
    }

    .kb-toc-header {
        gap: 0.65rem;
        margin-bottom: 0.65rem;
    }

    .kb-toc-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.75rem;
    }

    .kb-toc-link {
        padding: 0.5rem 0.1rem;
        gap: 0.55rem;
    }

    .kb-toc-item-child {
        padding-left: 0.35rem;
    }

    .kb-toc-link-text {
        font-size: 0.88rem;
    }
}

.kb-meta-row .kb-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.34rem 0.78rem;
    border: 1px solid #d7e3f3;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.kb-meta-row .kb-meta-chip svg {
    color: #6b7280;
}

.kb-meta-row .kb-meta-chip-primary {
    border-color: rgba(37, 99, 235, 0.24);
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f2ff 100%);
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.88);
}

.kb-meta-row .kb-meta-chip-primary svg {
    color: #2563eb;
}

.kb-meta-row .kb-meta-chip-subtle {
    font-weight: 500;
}

.kb-meta-row .inline-flex {
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.kb-content-lead {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    border-left-width: 5px;
    border-left-color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.kb-content-lead::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -90px;
    top: -90px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0));
    pointer-events: none;
}

.kb-side-stack {
    gap: 1rem;
}

.kb-side-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kb-side-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
}

.kb-side-card a {
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kb-side-card a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kb-side-card a:hover {
    transform: translateX(3px);
}

.kb-side-card a:hover::before,
.kb-side-card a.bg-blue-50::before {
    opacity: 1;
}

.kb-side-card a.bg-blue-50 {
    background: linear-gradient(90deg, #eaf2ff 0%, #f6faff 100%);
}

.kb-share-shell .site-button {
    border: 1px solid #d8e4f2;
    background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
}

.kb-share-shell .site-button:hover {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 1023.98px) {
    .kb-page-bg {
        background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
    }
    .kb-page-bg::before {
        opacity: 0.14;
    }
    .kb-side-card:hover {
        transform: none;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    }
}

@media (max-width: 767.98px) {
    .kb-article-shell,
    .kb-share-shell,
    .kb-side-card {
        border-radius: 1rem;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .kb-meta-row .flex {
        gap: 0.55rem;
        padding-bottom: 0.9rem;
    }

    .kb-meta-row .kb-meta-chip {
        min-height: 1.78rem;
        padding: 0.28rem 0.66rem;
        font-size: 0.83rem;
        border-width: 1px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    .kb-meta-row .kb-meta-chip svg {
        width: 0.86rem;
        height: 0.86rem;
    }

    .article-prose,
    .content-text {
        font-size: 1rem;
        line-height: 1.72;
    }

    .article-prose h1,
    .content-text h1 { font-size: 1.7rem; }
    .article-prose h2,
    .content-text h2 { font-size: 1.36rem; }
    .article-prose h3,
    .content-text h3 { font-size: 1.16rem; }

    .article-prose h1,
    .article-prose h2,
    .article-prose h3,
    .article-prose h4,
    .article-prose h5,
    .article-prose h6,
    .content-text h1,
    .content-text h2,
    .content-text h3,
    .content-text h4,
    .content-text h5,
    .content-text h6 {
        line-height: 1.24;
        margin-top: 1.45em;
        margin-bottom: 0.5em;
    }

    .content-lead,
    .kb-content-lead {
        font-size: 1.02rem;
        line-height: 1.68;
    }

    .kb-side-card a:hover {
        transform: none;
    }
}

/* Sosyal paylasim butonlari */
.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
}
.site-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.site-button.facebook:hover  { background: #1877F2; color: #fff; }
.site-button.x:hover         { background: #000000; color: #fff; }
.site-button.linkedin:hover  { background: #0A66C2; color: #fff; }
.site-button.whatsapp:hover  { background: #25D366; color: #fff; }
.site-button.telegram:hover  { background: #229ED9; color: #fff; }
.site-button.copy-share-link:hover { background: #145a92; color: #fff; }
.site-button.btn-web-share:hover   { background: #7c3aed; color: #fff; }

/* ===== Blog Category Listing ===== */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2ecf8;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,23,42,.07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #145aff, #0ea5a6);
    z-index: 2;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: #b7cef7;
    box-shadow: 0 24px 52px rgba(15,23,42,.14);
}
.blog-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #eef3ff 0%, #e2eeff 100%);
    flex-shrink: 0;
}
.blog-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(10,20,50,.28) 100%);
    pointer-events: none;
    z-index: 1;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .5s ease;
}
.blog-card-img img.blog-img-cover { object-fit: cover; }
.blog-card-img img.blog-img-logo  { object-fit: contain; padding: 1.5rem; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
/* Featured card: horizontal on tablet+ */
.blog-card--featured {
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .blog-card--featured .blog-card-inner { display: flex; flex-direction: row; min-height: 360px; }
    .blog-card--featured .blog-card-img   { flex: 0 0 52%; aspect-ratio: unset; min-height: 300px; }
    .blog-card--featured .blog-card-body  { padding: 2rem 2.25rem; justify-content: center; }
}
.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.375rem 1.375rem;
}
.blog-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #145aff, #0ea5a6);
    color: #fff;
    box-shadow: 0 2px 10px rgba(20,90,255,.35);
}
.blog-dark-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .22rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    background: rgba(10,18,45,.8);
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
}
.blog-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #145aff, #0ea5a6);
    color: #fff;
    box-shadow: 0 3px 14px rgba(20,90,255,.22);
    white-space: nowrap;
    transition: box-shadow .25s, transform .25s;
}
.blog-cta:hover {
    box-shadow: 0 6px 22px rgba(20,90,255,.38);
    transform: translateX(3px);
}
.blog-cta-sm {
    padding: .35rem .85rem;
    font-size: .75rem;
}


/* ===== Email hosting hero mobile fix ===== */
@media (max-width:1023px){
    #email-hero-wrap .grid{grid-template-columns:1fr !important}
    #email-hero-wrap section>div{padding-left:1rem !important;padding-right:1rem !important}
    #email-hero-wrap .w-\[420px\]{width:100% !important;max-width:100% !important}
    #email-hero-wrap .grid>div:last-child>div{width:100% !important;max-width:100% !important}
}
