/* Header logo — proportional size */
.site-header .brand-logo,
.optech-header-section .brand-logo {
  max-width: 88px;
}

.site-header .brand-logo img,
.optech-header-section .brand-logo img {
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  display: block;
}

/* UG Ajans - blog özet & içindekiler kutuları */

.ug-summary,
.ug-toc {
  padding: 22px 24px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.ug-summary {
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f9 100%);
  border-left: 3px solid var(--accent-bg, #2b59ff);
}

.ug-toc {
  background: #fafbfd;
  border: 1px solid #e8ecf3;
}

.ug-summary h2,
.ug-toc h2 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f1b3d !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

.ug-summary h2::before {
  content: "\f10f";
  font-family: remixicon;
  font-size: 17px;
  color: var(--accent-bg, #2b59ff);
  font-weight: normal;
}

.ug-toc h2::before {
  content: "\ee5c";
  font-family: remixicon;
  font-size: 17px;
  color: var(--accent-bg, #2b59ff);
  font-weight: normal;
}

.ug-summary p {
  margin-bottom: 0;
  color: #4b5568;
  font-size: 15px;
  line-height: 1.7;
}

.ug-toc ol,
.ug-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ug-toc;
}

.ug-toc ol li,
.ug-toc ul li {
  counter-increment: ug-toc;
  margin: 0;
  border-bottom: 1px solid #eef1f6;
}

.ug-toc ol li:last-child,
.ug-toc ul li:last-child {
  border-bottom: none;
}

.ug-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  color: #374151;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 6px;
}

.ug-toc a::before {
  content: counter(ug-toc, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #eef2ff;
  color: var(--accent-bg, #2b59ff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.ug-toc a:hover {
  color: var(--accent-bg, #2b59ff);
  background: rgba(43, 89, 255, 0.04);
  text-decoration: none;
}

.ug-toc a:hover::before {
  background: var(--accent-bg, #2b59ff);
  color: #fff;
}

/* ---------- Makale / hizmet içerik tipografisi ---------- */
.optech-service-details-item.entry-content,
.optech-single-post-content-wrap .entry-content {
  color: #4b5568;
  font-size: 16px;
  line-height: 1.75;
}

.optech-service-details-item.entry-content > h2,
.optech-single-post-content-wrap .entry-content > h2 {
  font-size: 1.125rem !important; /* 18px — tema 48px'i ez */
  line-height: 1.4 !important;
  letter-spacing: -0.01em !important;
  font-weight: 600 !important;
  color: #0f1b3d !important;
  margin: 2.5rem 0 1rem !important;
  padding: 0 0 0.65rem 0.85rem;
  border-left: 3px solid var(--accent-bg, #2b59ff);
  border-bottom: none;
}

.optech-service-details-item.entry-content > h2:first-of-type,
.optech-single-post-content-wrap .entry-content > h2:first-of-type {
  margin-top: 0.5rem !important;
}

.optech-service-details-item.entry-content .ug-summary h2,
.optech-service-details-item.entry-content .ug-toc h2,
.optech-single-post-content-wrap .entry-content .ug-summary h2,
.optech-single-post-content-wrap .entry-content .ug-toc h2 {
  font-size: 1rem !important;
  line-height: 1.35 !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: none !important;
  color: #0f1b3d !important;
}

.optech-service-details-item.entry-content > p,
.optech-single-post-content-wrap .entry-content > p {
  margin-bottom: 1.15rem;
  color: #4b5568;
  font-size: 16px;
  line-height: 1.8;
}

/* Tema reset: ul/ol { list-style:none; margin:0; padding:0 }
   İçerik listelerini yeniden görünür ve ferah hale getir */
.optech-service-details-item.entry-content > ul,
.optech-service-details-item.entry-content > ol,
.optech-single-post-content-wrap .entry-content > ul,
.optech-single-post-content-wrap .entry-content > ol {
  margin: 0.35rem 0 1.5rem !important;
  padding: 0 0 0 1.5rem !important;
  list-style-position: outside;
}

.optech-service-details-item.entry-content > ul,
.optech-single-post-content-wrap .entry-content > ul {
  list-style-type: disc !important;
}

.optech-service-details-item.entry-content > ol,
.optech-single-post-content-wrap .entry-content > ol {
  list-style-type: decimal !important;
  padding-left: 1.75rem !important;
}

.optech-service-details-item.entry-content > ul > li,
.optech-service-details-item.entry-content > ol > li,
.optech-single-post-content-wrap .entry-content > ul > li,
.optech-single-post-content-wrap .entry-content > ol > li {
  margin: 0 0 0.95rem !important;
  padding: 0 !important;
  color: #4b5568;
  font-size: 16px;
  line-height: 1.75 !important;
  list-style: inherit !important;
}

.optech-service-details-item.entry-content > ul > li:last-child,
.optech-service-details-item.entry-content > ol > li:last-child,
.optech-single-post-content-wrap .entry-content > ul > li:last-child,
.optech-single-post-content-wrap .entry-content > ol > li:last-child {
  margin-bottom: 0 !important;
}

.optech-service-details-item.entry-content > ul > li strong,
.optech-service-details-item.entry-content > ol > li strong,
.optech-single-post-content-wrap .entry-content > ul > li strong,
.optech-single-post-content-wrap .entry-content > ol > li strong {
  color: #1f2937;
  font-weight: 600;
}

/* ---------- İçerik tabloları ---------- */
.ug-table-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 0.5rem 0 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.ug-table-wrap table {
  display: table !important;
  width: 100% !important;
  min-width: 420px;
  margin: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: 15px;
  line-height: 1.55;
}

.ug-table-wrap thead {
  display: table-header-group !important;
}

.ug-table-wrap tbody {
  display: table-row-group !important;
}

.ug-table-wrap tr {
  display: table-row !important;
}

.ug-table-wrap th,
.ug-table-wrap td {
  display: table-cell !important;
  padding: 14px 18px !important;
  text-align: left !important;
  vertical-align: top !important;
  border-bottom: 1px solid #eef1f6 !important;
  color: #4b5568;
  white-space: normal;
}

.ug-table-wrap thead th {
  background: #f5f7fb !important;
  color: #0f1b3d !important;
  font-weight: 600 !important;
  border-bottom-color: #e2e8f0 !important;
}

.ug-table-wrap td:first-child,
.ug-table-wrap th:first-child {
  width: 28%;
  min-width: 110px;
  font-weight: 600;
  color: #1f2937;
}

.ug-table-wrap tbody tr:last-child td {
  border-bottom: none !important;
}

.ug-table-wrap tbody tr:nth-child(even) td {
  background: #fafbfd;
}

.optech-service-details-item.entry-content a,
.optech-single-post-content-wrap .entry-content a {
  color: var(--accent-bg, #2b59ff);
  text-decoration: none;
}

.optech-service-details-item.entry-content a:hover,
.optech-single-post-content-wrap .entry-content a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .optech-service-details-item.entry-content > h2,
  .optech-single-post-content-wrap .entry-content > h2 {
    font-size: 1.0625rem !important; /* 17px */
  }
}

/* ---------- Breadcrumb H1 - devasa boyutu küçült ---------- */
h1.post__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
}

/* ---------- Blog detay sayfası ---------- */
.optech-blog-thumb.single-blog {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0;
}

.optech-blog-thumb.single-blog img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.optech-single-post-content-wrap {
  max-width: 100%;
}

.optech-single-post-meta {
  padding: 20px 0 12px !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid #eef1f6 !important;
}

.optech-single-post-meta ul li {
  font-size: 14px !important;
}

.optech-single-post-meta ul li a {
  color: #6b7280 !important;
  font-weight: 500;
}

.optech-single-post-meta ul li a i {
  color: var(--accent-bg, #2b59ff) !important;
}

.optech-single-post-content-wrap .entry-content {
  color: #374151;
  font-size: 16px;
  line-height: 1.8;
}

.optech-single-post-content-wrap .entry-content > h2 {
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
  letter-spacing: -0.01em !important;
  font-weight: 600 !important;
  color: #0f1b3d !important;
  margin: 2.5rem 0 1rem !important;
  padding: 0 0 0.6rem 0.85rem;
  border-left: 3px solid var(--accent-bg, #2b59ff);
}

.optech-single-post-content-wrap .entry-content > p {
  margin-bottom: 1.15rem;
  color: #374151;
}

.optech-single-post-content-wrap .entry-content > ul > li strong,
.optech-single-post-content-wrap .entry-content > ol > li strong {
  color: #1f2937;
  font-weight: 600;
}

.optech-single-post-content-wrap .entry-content > ul > li b,
.optech-single-post-content-wrap .entry-content > ol > li b {
  color: #1f2937;
}

.optech-single-post-content-wrap .entry-content a {
  color: var(--accent-bg, #2b59ff);
  text-decoration: none;
}

.optech-single-post-content-wrap .entry-content a:hover {
  text-decoration: underline;
}

/* ---------- Blog liste kartları ---------- */
.optech-blog-grid .optech-blog-wrap {
  border-radius: 14px;
  border: 1px solid #eef1f6;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.optech-blog-grid .optech-blog-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 27, 61, 0.08);
}

.optech-blog-grid .optech-blog-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.optech-blog-grid .optech-blog-content h4 {
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 14px;
}

.optech-blog-grid .optech-blog-meta ul li a {
  font-size: 13px;
  color: #6b7280;
}

/* Görsel sünmesini engelle (ana sayfa / hakkımızda thumb) */
.optech-thumb {
  align-self: flex-start;
  width: 100%;
  height: auto;
}
.optech-thumb > img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* ========================================================
   MOBİL İYİLEŞTİRMELER
   ======================================================== */

/* Mobil drawer foot — masaüstünde gizle */
.ug-mobile-drawer-foot {
  display: none;
}

/* ---------- Mobil sidebar (left drawer) ---------- */
@media (max-width: 991px) {
  .site-header .menu-block {
    display: flex !important;
    flex-direction: column !important;
    background: #061a52 !important;
    width: min(308px, 88vw) !important;
    height: 100% !important;
    height: 100dvh !important;
    box-shadow: 12px 0 40px rgba(2, 12, 40, 0.45);
    overflow: hidden !important;
  }

  .site-header .menu-block .mobile-menu-head {
    background: #061a52 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: auto !important;
    min-height: 110px !important;
    padding: 36px 20px 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
    flex: 0 0 auto !important;
  }

  .ug-mobile-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    margin-top: 4px !important;
  }

  .ug-mobile-logo a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
  }

  .ug-mobile-logo img {
    display: block !important;
    width: auto !important;
    height: 48px !important;
    max-width: 200px !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .site-header .menu-block .mobile-menu-head.active {
    min-height: 64px !important;
    padding: 10px 12px !important;
    justify-content: flex-start !important;
  }

  .site-header .menu-block .mobile-menu-head.active .ug-mobile-logo {
    display: none !important;
  }

  .site-header .menu-block .mobile-menu-head .go-back {
    display: none !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    margin: 0 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    font-size: 18px !important;
    text-align: center !important;
  }

  .site-header .menu-block .mobile-menu-head.active .go-back {
    display: block !important;
  }

  .site-header .menu-block .mobile-menu-head .current-menu-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    visibility: hidden !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .site-header .menu-block .mobile-menu-head.active .current-menu-title {
    visibility: visible !important;
  }

  .site-header .menu-block .mobile-menu-head .mobile-menu-close {
    appearance: none;
    border: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 28px !important;
    cursor: pointer;
    text-align: center !important;
    z-index: 2;
  }

  .site-header .menu-block .mobile-menu-head.active .mobile-menu-close {
    position: static !important;
    margin-left: auto !important;
  }

  .site-header .menu-block .site-menu-main {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 10px 0 8px !important;
    -webkit-overflow-scrolling: touch;
  }

  .site-header .menu-block .site-menu-main > li > a {
    position: relative !important;
    color: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 15.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    padding: 0 48px 0 20px !important;
    height: 54px !important;
    line-height: 54px !important;
  }

  .site-header .menu-block .site-menu-main > li:last-child > a {
    border-bottom: none !important;
  }

  .site-header .menu-block .site-menu-main > li > a:hover,
  .site-header .menu-block .site-menu-main > li > a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
  }

  .site-header .menu-block .site-menu-main > li > a i {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    width: 48px !important;
    height: 54px !important;
    line-height: 54px !important;
    transform: none !important;
    font-size: 20px !important;
  }

  .site-header .menu-block .sub-menu {
    background: #061a52 !important;
    padding-top: 64px !important;
    z-index: 15 !important;
  }

  .site-header .menu-block .sub-menu .sub-menu--item a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14.5px !important;
    padding: 14px 22px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    display: block !important;
  }

  .site-header .menu-block .sub-menu .sub-menu--item a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
  }

  .ug-mobile-drawer-foot {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column;
    padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #041446;
    gap: 10px;
  }

  .ug-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: #061a52 !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  }

  .ug-mobile-cta:hover,
  .ug-mobile-cta:focus {
    color: #041446 !important;
    background: #f3f6ff;
  }

  .ug-mobile-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
  }

  .ug-mobile-tel i {
    font-size: 16px;
    color: #9eb6ff;
  }

  .site-header .mobile-menu-trigger span,
  .site-header .mobile-menu-trigger span::before,
  .site-header .mobile-menu-trigger span::after {
    background-color: #fff !important;
  }
}

/* ---------- Mobil footer ortalama ---------- */
@media (max-width: 991px) {
  .optech-footer-section .optech-footer-textarea,
  .optech-footer-section .optech-footer-menu {
    text-align: center !important;
    margin-bottom: 32px;
  }

  .optech-footer-section .optech-footer-textarea p {
    max-width: 100%;
  }

  .optech-footer-section .optech-footer-textarea a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px;
  }

  .optech-footer-section .optech-footer-textarea img {
    margin: 0 !important;
    display: block !important;
    width: 132px !important;
    height: auto !important;
    max-width: 60% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .optech-footer-section .optech-social-icon-box {
    justify-content: center;
  }

  .optech-footer-section .optech-social-icon-box ul {
    justify-content: center;
    display: flex;
  }

  .optech-footer-section .optech-footer-title {
    text-align: center;
  }

  .optech-footer-section .optech-footer-menu ul {
    text-align: center;
    padding: 0;
  }

  .optech-footer-section .optech-footer-menu ul li {
    text-align: center;
  }

  .optech-footer-section .optech-footer-bottom {
    text-align: center;
  }

  .optech-footer-section .optech-footer-bottom p {
    text-align: center;
    font-size: 13px;
  }
}

/* ---------- Mobil breadcrumb ---------- */
@media (max-width: 767px) {
  .optech-breadcrumb {
    padding: 140px 0 60px !important;
  }

  h1.post__title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  .breadcrumbs ul li,
  .breadcrumbs ul li a {
    font-size: 13px !important;
  }
}

/* ---------- Mobil hizmet sidebar ---------- */
@media (max-width: 991px) {
  .optech-service-sidebar {
    margin-left: 0 !important;
    margin-top: 32px;
  }
}

/* ---------- Mobil teklif formu ---------- */
@media (max-width: 767px) {
  .optech-main-form {
    padding: 28px 20px !important;
    border-radius: 14px !important;
  }

  .optech-main-form h3 {
    font-size: 1.15rem !important;
  }
}

/* ---------- Mobil blog kartları ---------- */
@media (max-width: 767px) {
  .optech-blog-grid .optech-blog-thumb img {
    height: 180px !important;
  }

  .optech-blog-grid .optech-blog-content {
    padding: 20px !important;
  }

  .optech-blog-grid .optech-blog-content h4 {
    font-size: 0.95rem !important;
  }
}

/* ---------- Mobil genel spacing ---------- */
@media (max-width: 767px) {
  .optech-section-padding {
    padding: 48px 0 !important;
  }

  .optech-service-details-wrap > img {
    border-radius: 10px !important;
    margin-bottom: 28px !important;
  }

  .ug-summary,
  .ug-toc {
    padding: 18px 16px !important;
    margin-bottom: 22px !important;
  }

  .ug-toc a {
    padding: 9px 2px !important;
    font-size: 13.5px !important;
  }

  .ug-toc a::before {
    min-width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
  }
}

/* ---------- Mobil CTA ---------- */
@media (max-width: 767px) {
  .optech-cta-content h2 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }

  .optech-cta-content p {
    font-size: 14px !important;
  }
}

/* ---------- Hero LCP (anasayfa) ---------- */
.ug-hero-lcp {
  position: relative;
  background-image: none !important;
  overflow: hidden;
}

.ug-hero-lcp .ug-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.ug-hero-lcp > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Hizmet hub + case + author ---------- */
.ug-hub-card {
  height: calc(100% - 24px);
  margin-bottom: 24px;
}

.ug-hub-card h5 a {
  color: inherit;
  text-decoration: none;
}

.ug-hub-card h5 a:hover {
  color: var(--accent-bg, #2b59ff);
}

.ug-case-study {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 12px;
  background: #f7f9fc;
  border-left: 3px solid var(--accent-bg, #2b59ff);
}

.ug-case-study h2 {
  font-size: 1.15rem !important;
  margin: 0 0 12px !important;
}

.ug-case-meta,
.ug-case-note {
  font-size: 0.95rem;
  color: #4a5568;
}

.ug-case-results {
  margin-bottom: 10px;
}

.ug-author-bio {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e8ecf3;
}

.ug-author-bio__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ug-author-bio__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-bg, #2b59ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ug-author-bio__label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #718096;
}

.ug-author-bio__name {
  margin: 2px 0 4px;
  font-size: 1.05rem;
}

.ug-author-bio__role {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #4a5568;
}

.ug-author-bio__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
