:root { --brand: darkorchid; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
.brand-text { font-family: 'Segoe UI Italic', 'Segoe UI', system-ui, sans-serif; font-style: italic; font-weight: 400; color: darkorchid; letter-spacing: 0; }
.navbar-brand .brand-text { font-size: 1.75rem; line-height: 1.2; }
#main_navbar { border-bottom: 1px solid rgba(0,0,0,.06); }
#main_navbar .nav-link { padding-inline: .75rem; }
.nav-contact a { text-decoration: none; }
.floating-contact { position: fixed; right: 20px; bottom: 20px; z-index: 1030; display: flex; flex-direction: column; gap: 10px; }
.floating-contact a { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; transition: transform .15s; }
.floating-contact a:hover { transform: translateY(-2px); }
.site-footer { border-top: 1px solid rgba(0,0,0,.08); background: #f8f9fa; }
.site-footer li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.site-footer li i { line-height: 1.5; }

/* İçerik sayfaları ortak tasarımı (.ptx) */
.ptx { --ink: #1f2328; --muted: #5b6270; --line: #e6e8ee; --soft: #f6f7fb; --brand: #9932cc; --brand-dark: #7a28a3; --tint: #f4eafa; color: var(--ink); }
.ptx .breadcrumb { font-size: .85rem; margin-bottom: 0; }
.ptx .breadcrumb a { color: var(--muted); text-decoration: none; }
.ptx .breadcrumb a:hover { color: var(--brand); }
.ptx-hero { padding: 2rem 0 3.5rem; }
.ptx-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1.25rem; }
.ptx-lead { font-size: 1.1rem; line-height: 1.75; color: var(--muted); margin-bottom: 1.75rem; }
.ptx-hero figure { margin: 0; }
.ptx-hero img { width: 100%; height: auto; border-radius: 16px; }
.ptx-hero figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline-brand:hover { border-color: var(--brand); color: var(--brand); }
.ptx-body { line-height: 1.8; color: #2b2f36; }
.ptx-body > section { scroll-margin-top: 90px; }
.ptx-body > section + section { margin-top: 3.5rem; }
.ptx-body h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 1rem; }
.ptx-body h3 { font-size: 1.25rem; font-weight: 600; margin: 2.25rem 0 .75rem; }
.ptx-body h4 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .5rem; }
.ptx-body p { margin-bottom: 1rem; }
.ptx-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; background: #fff; height: 100%; }
.ptx-card p { font-size: .94rem; color: var(--muted); margin: 0; line-height: 1.65; }
.ptx-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: .85rem; }
.ptx-list { list-style: none; padding: 0; margin: 0; }
.ptx-list li { display: flex; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.6; }
.ptx-list li:first-child { border-top: 0; }
.ptx-list i { color: var(--brand); margin-top: .15rem; }
.ptx-panel { background: var(--soft); border-radius: 14px; padding: 1.75rem; }
.ptx-gallery { margin: 2.5rem 0; }
.ptx-gallery img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: none; }
.ptx-gallery .row, .ptx-gallery { align-items: flex-start; }
.ptx-gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; line-height: 1.4; }
.ptx-aside { position: sticky; top: 90px; }
.ptx-toc-title { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.ptx-toc a { display: block; padding: .4rem 0 .4rem .9rem; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.ptx-toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.ptx-contact { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-top: 2rem; }
.ptx-contact a { text-decoration: none; }
.ptx .accordion-item { border-color: var(--line); }
.ptx .accordion-button { font-weight: 500; color: var(--ink); }
.ptx .accordion-button:not(.collapsed) { background: var(--soft); color: var(--ink); box-shadow: none; }
.ptx .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(153, 50, 204, .18); }
.ptx .accordion-body { color: var(--muted); line-height: 1.75; }
.ptx-cta { background: var(--soft); border-radius: 16px; padding: 2.5rem; margin: 4.5rem 0 1rem; }
.ptx-cta h2 { font-size: 1.5rem; font-weight: 600; margin: 0 0 .35rem; }
    
/* İçerik sayfalarında genel öğeler */
.ptx-body h4.ptx-h { font-size: 1.25rem; margin: 2.5rem 0 .75rem; scroll-margin-top: 90px; }
.ptx-body h2[id] { scroll-margin-top: 90px; margin-top: 3rem; }
.ptx-body > :first-child, .ptx-body > div:first-child:not(.row) > :first-child { margin-top: 0; }
.ptx-body figure:not([class]) { margin: 2rem 0; }
.ptx-body ul:not([class]) { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.ptx-body ul:not([class]) > li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.ptx-body ul:not([class]) > li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--brand); }
.ptx-body .list-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 1.5rem 0; }
.ptx-body .list-group-item { border-color: var(--line); padding: .75rem 1rem; }
.ptx-body .card, .ptx-products .card { border-color: var(--line); border-radius: 12px; overflow: hidden; }
.ptx-body .card-header { background: var(--soft); font-weight: 600; border-color: var(--line); }
.ptx-body .alert { border-radius: 12px; }
.ptx-body table { width: 100%; }
.ptx-products { margin-bottom: 3rem; }
.ptx-products .card-img-top { aspect-ratio: 4 / 3; object-fit: contain; background: var(--soft); padding: 1rem; }
.ptx-products .card-title { font-size: 1.05rem; font-weight: 600; }
.ptx-products .list-group-item { font-size: .9rem; padding: .5rem 0; border-color: var(--line); }

/* Çerez bandı */
.cerez-bandi { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1040; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid #e6e8ee; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; font-size: .9rem; line-height: 1.55; }
.cerez-bandi[hidden] { display: none; }
.cerez-bandi p { margin: 0; flex: 1 1 320px; color: #3a3f48; }
.cerez-bandi a { color: #9932cc; }
.cerez-bandi button { background: #9932cc; border: 0; color: #fff; border-radius: 8px; padding: .55rem 1.25rem; font-weight: 500; }
.cerez-bandi button:hover { background: #7a28a3; }

/* Footer bağlantıları */
.site-footer .footer-links li { margin-bottom: .35rem; }
.site-footer .footer-links a, .site-footer .footer-legal a { color: #5b6270; text-decoration: none; }
.site-footer .footer-links a:hover, .site-footer .footer-legal a:hover { color: #9932cc; }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; }


/* İçerik tabloları */
.ptx-table { font-size: .92rem; line-height: 1.55; border-color: var(--line); }
.ptx-table thead th { background: #f6f6f9; font-weight: 600; white-space: nowrap; }
.ptx-table tbody th { font-weight: 600; min-width: 160px; }
.ptx-table td, .ptx-table th { padding: .75rem .9rem; vertical-align: top; }
.ptx-body section[id] { scroll-margin-top: 90px; }

/* width/height eklenen görseller oranını korur, kapsayıcıya sığar */
:where(img[width][height]) { max-width: 100%; height: auto; }

/* Kütüphane turnike hero */
.ptx-kh { position: relative; overflow: hidden; border-radius: 16px; background: var(--soft); margin-bottom: 2.5rem; }
.ptx-kh-media { margin: 0; }
.ptx-kh-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.ptx-kh-media figcaption { position: absolute; right: .75rem; top: .75rem; font-size: .75rem; color: #fff; background: rgba(31,35,40,.55); padding: .2rem .55rem; border-radius: 6px; }
.ptx-kh-body { position: relative; padding: 1.75rem 1.25rem; background: #fff; }
.ptx-kh h1, .ptx-kh h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.08; color: var(--ink); margin: 0 0 .6rem; letter-spacing: -.01em; }
.ptx-kh-sub { font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-style: italic; color: var(--ink); margin: 0 0 1rem; }
.ptx-kh-rule { display: block; width: 170px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brand) 0 66%, var(--tint) 66%); margin-bottom: 1.25rem; }
.ptx-kh-lead { max-width: 30rem; font-size: 1.05rem; line-height: 1.55; color: #3a3f48; margin-bottom: 1.5rem; }
.ptx-kh-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; max-width: 19rem; }
.ptx-kh-feats li { display: flex; align-items: center; gap: .9rem; background: rgba(255,255,255,.88); border-radius: 999px 14px 14px 999px; padding: .3rem 1rem .3rem .3rem; font-weight: 600; line-height: 1.25; color: var(--ink); box-shadow: 0 2px 10px rgba(31,35,40,.06); }
.ptx-kh-feats i { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.ptx-kh-band { position: relative; display: grid; grid-template-columns: 1fr; background: #241a33; color: #fff; }
.ptx-kh-band ul { list-style: none; margin: 0; padding: 1.1rem 1.25rem; display: grid; gap: .9rem; }
.ptx-kh-band li { display: flex; align-items: center; gap: .8rem; font-weight: 500; line-height: 1.3; }
.ptx-kh-band li i { font-size: 1.9rem; }
.ptx-kh-claim { background: var(--brand); padding: 1.1rem 1.25rem; font-size: clamp(1.2rem, 2vw, 1.75rem); font-style: italic; font-weight: 500; line-height: 1.2; text-align: right; margin: 0; }
.ptx-kh-claim strong { display: block; font-weight: 800; }
@media (min-width: 992px) {
  .ptx-kh-media { position: absolute; inset: 0 0 100px 0; }
  .ptx-kh-body { background: linear-gradient(90deg, #fff 0, rgba(255,255,255,.94) 30%, rgba(255,255,255,.55) 46%, rgba(255,255,255,0) 60%); padding: 3.5rem 3rem 3rem; min-height: 560px; }
  .ptx-kh-band { grid-template-columns: 1fr auto; min-height: 100px; }
  .ptx-kh-band ul { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; padding: 1.25rem 3rem; align-items: center; }
  .ptx-kh-band li + li { border-left: 1px solid rgba(255,255,255,.35); padding-left: 2rem; margin-left: 2rem; }
  .ptx-kh-claim { clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%); padding: 1.25rem 3rem 1.25rem 5rem; display: flex; flex-direction: column; justify-content: center; }
}
.ptx-kh-kurs h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 26rem; }
.ptx-kh-kurs .ptx-kh-media img { object-position: 70% 60%; }
@media (min-width: 992px) { .ptx-kh-kurs .ptx-kh-body { min-height: 620px; } }
.ptx-kh-puantaj .ptx-kh-media img { object-position: 72% 45%; }
@media (min-width: 992px) { .ptx-kh-puantaj .ptx-kh-body { min-height: 640px; } }
.ptx-kh-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 .5rem; }
.ptx-kh-qr h1 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); }
.ptx-kh-qr .ptx-kh-media img { object-position: 30% 50%; }
@media (min-width: 992px) {
  .ptx-kh-right .ptx-kh-body { display: flex; justify-content: flex-end; background: linear-gradient(270deg, #fff 0, rgba(255,255,255,.94) 32%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 62%); }
  .ptx-kh-right .ptx-kh-inner { max-width: 31rem; }
  .ptx-kh-qr .ptx-kh-body { min-height: 600px; }
}
.ptx-kh-yurt .ptx-kh-media img { object-position: 40% 50%; }
@media (min-width: 992px) { .ptx-kh-yurt .ptx-kh-body { min-height: 620px; } }