/*
Theme Name: Özcan Kaya Medical Theme
Theme URI: https://drozcankaya.com.tr/
Author: Datweb
Author URI: https://datweb.com.tr
Description: Doç. Dr. Özcan Kaya için özel hazırlanmış ortopedi ve travmatoloji odaklı WordPress teması.
Version: 2.32
Text Domain: ozcankaya
*/


/* v1.61 - TEK VE TEMİZ SIDEBAR STICKY KURALI */
@media (min-width: 901px) {
  html,
  body,
  .ok-site-main,
  .ok-page-section,
  .ok-page-section-compact,
  .ok-blog-archive-page,
  .ok-single-redesign,
  .ok-container,
  .ok-blog-archive-layout,
  .ok-single-redesign .ok-single-grid,
  .ok-single-grid,
  .ok-blog-archive-main,
  .ok-single-content {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    transform: none !important;
    filter: none !important;
    contain: none !important;
    perspective: none !important;
  }

  .ok-blog-archive-layout,
  .ok-single-redesign .ok-single-grid,
  .ok-single-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 36px !important;
    align-items: start !important;
  }

  .ok-sidebar,
  .ok-sidebar.is-sticky,
  .ok-sidebar.no-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 24px !important;
    align-self: start !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
    z-index: 5 !important;
  }

  body.admin-bar .ok-sidebar,
  body.admin-bar .ok-sidebar.is-sticky,
  body.admin-bar .ok-sidebar.no-sticky {
    top: 56px !important;
  }

  .ok-sidebar-inner,
  .ok-sidebar.is-sticky .ok-sidebar-inner,
  .ok-sidebar.no-sticky .ok-sidebar-inner {
    position: static !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .ok-sidebar-category-widget {
    display: block !important;
  }
}

@media (max-width: 900px) {
  .ok-blog-archive-layout,
  .ok-single-redesign .ok-single-grid,
  .ok-single-grid {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .ok-sidebar,
  .ok-sidebar.is-sticky,
  .ok-sidebar.no-sticky,
  .ok-sidebar-inner {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* v2.01 - Sitewide font consistency + about image fit */
html,
body,
button,
input,
select,
textarea,
a,
span,
p,
li,
strong,
em,
small,
label,
table,
th,
td,
h1,
h2,
h3,
h4,
h5,
h6,
.ok-site-main,
.ok-site-main *,
.ok-site-header,
.ok-site-header *,
.ok-site-footer,
.ok-site-footer *{
  font-family:Inter, Arial, sans-serif!important;
}
.ok-hero h1,
.ok-hero-title,
.ok-page-hero-title,
.ok-single-content h1,
.ok-content h1,
.ok-content h2,
.ok-content h3,
.ok-treatments h2,
.ok-latest h2,
.ok-home-about h2,
.ok-about-page-copy h1,
.ok-about-page-side-card h2,
.ok-about-page-membership h2,
.ok-blog-body h3,
.ok-widget h3,
.ok-footer-col h3{
  font-family:Inter, Arial, sans-serif!important;
}
.ok-home-about-media img,
.ok-about-page-portrait img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}
.ok-home-about-media,
.ok-about-page-portrait{
  background:linear-gradient(135deg,#edf6f9 0%,#f8fcfd 100%)!important;
}
.ok-about-page-portrait:before,
.ok-home-about-media:after{
  pointer-events:none!important;
}

/* Özcan Kaya / Polylang uyumluluk: header + mobile language selector */
.ok-polylang-switch ul {display:flex;flex-wrap:wrap;align-items:center;gap:8px;list-style:none;margin:0;padding:0;}
.ok-polylang-switch li {list-style:none;margin:0;padding:0;}
.ok-polylang-switch a,.ok-polylang-switch .lang-item a {display:inline-block;padding:6px 8px;border-radius:6px;text-decoration:none;font-size:12px;font-weight:600;line-height:1.4;color:inherit;}
.ok-polylang-switch li.current-lang a {background:rgba(50,100,150,.12);text-decoration:underline;text-underline-offset:3px;}
.ok-mobile-menu .ok-polylang-switch {padding:10px 16px;}
@media(max-width:1100px){.ok-header-actions .ok-polylang-switch {display:none;}}
@media(min-width:1101px){.ok-mobile-menu .ok-polylang-switch {display:none;}}
html[dir=rtl] .ok-primary-nav,html[dir=rtl] .ok-mobile-menu {direction:rtl;}
