/* ==========================================================================
   Thor's Trees — article + archive styles (RTASK-1722)
   ========================================================================== */
body {
  --post-text: #333333; --post-heading: #14221d; --post-link: #e07b1a; --post-link-hover: #14221d;
  --post-muted: #6b746f; --post-border: #e2e4dd; --post-bq-border: #86d993; --post-bq-bg: #f7f8ed;
  --post-th-bg: #14221d; --post-th-text: #ffffff; --post-stripe: #f7f8ed; --post-caption: #777777;
  --post-code-bg: #f2f3ec; --post-card-bg: #ffffff;
  --post-filter-text: #5a635e; --post-filter-border: #d7dbd2;
  --post-filter-active-bg: #14221d; --post-filter-active-text: #ffffff; --post-filter-active-border: #14221d;
}
body.karanlik-tema-aktif {
  --post-text: #cdd6d1; --post-heading: #ffffff; --post-link: #f1873a; --post-link-hover: #ffffff;
  --post-muted: #9aa39d; --post-border: rgba(255,255,255,.14); --post-bq-border: #86d993; --post-bq-bg: rgba(255,255,255,.05);
  --post-th-bg: #0c2f26; --post-th-text: #ffffff; --post-stripe: rgba(255,255,255,.04); --post-caption: #9aa39d;
  --post-code-bg: rgba(255,255,255,.08); --post-card-bg: transparent;
  --post-filter-text: #9aa39d; --post-filter-border: rgba(255,255,255,.2);
  --post-filter-active-bg: rgba(255,255,255,.1); --post-filter-active-text: #ffffff; --post-filter-active-border: rgba(255,255,255,.3);
}

/* ---------- Careers band colours (light = cream / dark-green text, dark = green / white text) ---------- */
body { --careers-band-bg: #f7f8ed; --careers-band-text: #14221d; }
body.karanlik-tema-aktif { --careers-band-bg: #14221d; --careers-band-text: #ffffff; }

/* ---------- Single article content ---------- */
.single-post .main-content-area .entry-content, .single-post .main-content-area .entry-content * { transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
.single-post .main-content-area .entry-content { color: var(--post-text); font-size: 1.0625rem; line-height: 1.75; word-break: break-word; }
.single-post .main-content-area .entry-content h1, .single-post .main-content-area .entry-content h2, .single-post .main-content-area .entry-content h3,
.single-post .main-content-area .entry-content h4, .single-post .main-content-area .entry-content h5, .single-post .main-content-area .entry-content h6 { color: var(--post-heading); line-height: 1.25; margin: 1.8em 0 .6em; font-weight: 700; }
.single-post .main-content-area .entry-content h1 { font-size: 2rem; } .single-post .main-content-area .entry-content h2 { font-size: 1.6rem; }
.single-post .main-content-area .entry-content h3 { font-size: 1.35rem; } .single-post .main-content-area .entry-content h4 { font-size: 1.15rem; }
.single-post .main-content-area .entry-content h5 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: .02em; }
.single-post .main-content-area .entry-content h6 { font-size: .95rem; color: var(--post-muted); }
.single-post .main-content-area .entry-content > *:first-child { margin-top: 0; }
.single-post .main-content-area .entry-content p { margin: 0 0 1.25em; }
.single-post .main-content-area .entry-content a { color: var(--post-link); text-decoration: underline; text-underline-offset: 2px; }
.single-post .main-content-area .entry-content a:hover, .single-post .main-content-area .entry-content a:focus { color: var(--post-link-hover); }
.single-post .main-content-area .entry-content ul, .single-post .main-content-area .entry-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.single-post .main-content-area .entry-content li { margin: .4em 0; }
.single-post .main-content-area .entry-content ul { list-style: disc; } .single-post .main-content-area .entry-content ol { list-style: decimal; }
.single-post .main-content-area .entry-content li::marker { color: var(--post-link); }
.single-post .main-content-area .entry-content blockquote { margin: 1.5em 0; padding: .9em 1.25em; border-left: 4px solid var(--post-bq-border); background: var(--post-bq-bg); border-radius: 0 6px 6px 0; color: var(--post-text); }
.single-post .main-content-area .entry-content table, .single-post .main-content-area .entry-content .wp-block-table table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .98rem; }
.single-post .main-content-area .entry-content th, .single-post .main-content-area .entry-content td { padding: .65em .85em; border: 1px solid var(--post-border); text-align: left; vertical-align: top; }
.single-post .main-content-area .entry-content thead th { background: var(--post-th-bg); color: var(--post-th-text); }
.single-post .main-content-area .entry-content tbody tr:nth-child(even) { background: var(--post-stripe); }
.single-post .main-content-area .entry-content img { max-width: 100%; height: auto; border-radius: 6px; }
.single-post .main-content-area .entry-content figure { margin: 1.5em 0; }
.single-post .main-content-area .entry-content figcaption, .single-post .main-content-area .entry-content .wp-element-caption { color: var(--post-caption); font-size: .9rem; text-align: center; margin-top: .5em; }
.single-post .main-content-area .entry-content hr { border: 0; border-top: 1px solid var(--post-border); margin: 2em 0; }

/* ---------- Full-width blog hero (matches single-post page-title banner) ---------- */
.ktt-blog-hero {
  position: relative;
  width: calc(100vw - 40px);
  margin-left: calc(50% - 50vw + 20px); margin-right: calc(50% - 50vw + 20px);
  min-height: 420px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: #0B3130;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  border-radius: 15px;
  overflow: hidden;
}
.ktt-blog-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,49,48,.47) 40%, #0B3130 100%); }
.ktt-blog-hero__inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 90px 15px; }
.ktt-blog-hero__title { color: #fff !important; font-size: 3.4rem; line-height: 1.1; margin: 0 0 .3em; font-weight: 700; }
.ktt-blog-hero__desc { color: rgba(255,255,255,.92); font-size: 1.05rem; line-height: 1.7; max-width: 60ch; margin: 0 auto; }

/* ---------- Single/archive: take the transparent header out of overlay (absolute) so it sits in normal flow above the native hero ---------- */
@media (min-width: 1025px) {
  body.single-post:not(.elementor-editor-active) header .elementor-header-top-transparent,
  body.single-career:not(.elementor-editor-active) header .elementor-header-top-transparent,
  body.ktt-careers-page:not(.elementor-editor-active) header .elementor-header-top-transparent,
  body.archive:not(.elementor-editor-active) header .elementor-header-top-transparent {
    position: static;
  }
}

/* ---------- Category filter bar ---------- */
.ktt-blog-archive { padding-bottom: 70px; }
.ktt-blog-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin: 48px 0 44px; }
.ktt-filter-pill { display: inline-block; padding: 11px 22px; border: 1px solid var(--post-filter-border); border-radius: 6px; color: var(--post-filter-text); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; font-weight: 600; text-decoration: none; transition: all .2s ease; }
.ktt-filter-pill:hover { border-color: var(--post-link); color: var(--post-link); }
.ktt-filter-pill.is-active { background: var(--post-filter-active-bg); color: var(--post-filter-active-text); border-color: var(--post-filter-active-border); }

/* ---------- 3-column grid (production style-4 card, borderless) ---------- */
.ktt-post-row { margin-top: 4px; }
.ktt-post-row > [class*="col-"] { margin-bottom: 38px; display: flex; }
.blog-item-current-style4 { width: 100%; margin: 0; }
.blog-item-current-style4 .inner-box { display: flex; flex-direction: column; width: 100%; background: transparent; border: none; border-radius: 0; box-shadow: none; }
.blog-item-current-style4 .entry-header.thumb { display: block; overflow: hidden; line-height: 0; border-radius: 8px; }
.blog-item-current-style4 .entry-header.thumb img { width: 100%; height: 235px; object-fit: cover; border-radius: 8px; }
.blog-item-current-style4 .entry-content { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 11px; flex: 1 1 auto; }
.blog-item-current-style4 .entry-meta { margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--post-muted); }
.blog-item-current-style4 .entry-meta li { display: inline-block; margin: 0; }
.blog-item-current-style4 .entry-meta a { color: var(--post-muted); text-decoration: none; }
.blog-item-current-style4 .entry-meta .fa { color: var(--post-link); margin-right: 6px; }
.blog-item-current-style4 .entry-title { margin: 0; font-size: 1.32rem; line-height: 1.3; font-weight: 700; }
.blog-item-current-style4 .entry-title a { color: var(--post-heading); text-decoration: none; }
.blog-item-current-style4 .entry-title a:hover { color: var(--post-link); }
.blog-item-current-style4 .post-excerpt, .blog-item-current-style4 .mascot-post-excerpt { color: var(--post-text); font-size: .98rem; line-height: 1.65; }
.blog-item-current-style4 .post-btn-readmore { margin-top: auto; padding-top: 6px; }
.blog-item-current-style4 .post-btn-readmore .btn { color: var(--post-heading); font-weight: 700; }
.blog-item-current-style4 .post-btn-readmore .btn:hover { color: var(--post-link); }

/* ---------- Pagination (centered, light/dark) ---------- */
.blog .pagination, .archive .pagination, .search .pagination { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 14px 0 10px; }
.blog .pagination .page-item, .archive .pagination .page-item, .search .pagination .page-item { margin: 0; }
.blog .pagination .page-link, .archive .pagination .page-link, .search .pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--post-border); border-radius: 8px; color: var(--post-heading); background: transparent; font-weight: 600; line-height: 1; text-decoration: none; transition: all .2s ease; }
.blog .pagination .page-link:hover, .archive .pagination .page-link:hover, .search .pagination .page-link:hover { border-color: var(--post-link); color: var(--post-link); }
.blog .pagination .page-item.active .page-link, .archive .pagination .page-item.active .page-link, .search .pagination .page-item.active .page-link { background: var(--post-th-bg); color: var(--post-th-text); border-color: var(--post-th-bg); }
.blog .pagination .page-link.dots, .archive .pagination .page-link.dots, .search .pagination .page-link.dots { border: none; min-width: auto; padding: 0 6px; color: var(--post-muted); }

@media (max-width: 991px) { .ktt-blog-hero { min-height: 360px; } .ktt-blog-hero__title { font-size: 2.7rem; } .ktt-blog-hero__inner { padding: 70px 15px; } }
@media (max-width: 767px) {
  .ktt-blog-hero { min-height: 280px; }
  .ktt-blog-hero__title { font-size: 2.1rem; }
  .ktt-blog-hero__inner { padding: 52px 15px; }
  .ktt-blog-filter { margin: 32px 0; gap: 8px; }
  .single-post .main-content-area .entry-content { font-size: 1rem; }
}

/* ============================================================
 * Careers (RTASK-1723) — single role detail + listing.
 * Reuses the blog light/dark CSS variables.
 * ============================================================ */

/* Single role — full-width team-photo hero (matches original) */
.ktt-career-hero { min-height:560px; }
.ktt-career-hero .ktt-blog-hero__title { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }

/* Single role — single-column content flow */
.ktt-career-single { padding: 60px 0 86px; }
.ktt-career-body { max-width: 980px; margin: 0 auto; color:var(--post-text); font-size:1.06rem; line-height:1.8; }
.ktt-career-body > *:first-child { margin-top:0; }
.ktt-career-body h2 { color:var(--post-heading); font-size:1.85rem; line-height:1.25; margin:1.85em 0 .55em; font-weight:700; }
.ktt-career-body h2::after { content:""; display:block; width:64px; height:3px; background:#11694F; margin-top:.55rem; border-radius:2px; }
.ktt-career-body h3 { color:var(--post-link); font-size:1.3rem; margin:1.6em 0 .45em; font-weight:700; }
.ktt-career-body p { margin:0 0 1.15em; }
.ktt-career-body a { color:var(--post-link); }
.ktt-career-body strong { color:var(--post-heading); }
.ktt-career-body ul, .ktt-career-body ol { margin:0 0 1.3em 1.2em; }
.ktt-career-body li { margin:0 0 .55em; }
/* "Job Title:" first heading — hidden (the role title already shows in the hero). */
.ktt-career-body > .wp-block-heading:first-child { display: none; }
.ktt-career-body > .wp-block-heading:first-child + * { margin-top: 0; }

.ktt-career-apply { display:inline-block; background:#e07b1a; color:#fff !important; padding:14px 24px; border-radius:8px; font-weight:700; text-decoration:none; transition:background .2s ease; }
.ktt-career-apply:hover { background:#c96a12; }

@media (max-width: 991px) {
  .ktt-career-hero { min-height: 420px; }
  .ktt-career-single { padding: 44px 0 64px; }
}

/* ============================================================
 * Careers page (block-rendered): let the full-bleed blocks break
 * out of the theme's boxed content container. Scoped to the page.
 * ============================================================ */
.ktt-careers-page .container:has(.tm-blog-sidebar-row) { max-width: 100%; padding-left: 0; padding-right: 0; }
.ktt-careers-page .tm-blog-sidebar-row { margin-left: 0; margin-right: 0; }
.ktt-careers-page .tm-blog-sidebar-row > [class*="col-"] { padding-left: 0; padding-right: 0; }
/* The blocks handle their own spacing — drop the theme's content-area padding. */
.ktt-careers-page .main-content-area { overflow: visible; padding-top: 0; padding-bottom: 0; }
.ktt-careers-page .main-content-section-wrapper { padding-top: 0; padding-bottom: 0; }

/* Editor iframe: the theme/Bootstrap .container isn't loaded there, so constrain
 * the careers blocks' inner content to a readable centred width. */
.editor-styles-wrapper .ktt-blog-hero.ktt-careers-hero .ktt-blog-hero__inner,
.editor-styles-wrapper .ktt-careers-hiring > .container,
.editor-styles-wrapper .ktt-careers-apply > .container,
.editor-styles-wrapper .ktt-careers-openings > .container { width: 100%; max-width: 1340px; margin-left: auto; margin-right: auto; }

/* ============================================================
 * Round 7 feedback (RTASK-1736) — blog / single spacing + sizing.
 * ============================================================ */

/* The featured image is now the hero background, so hide the duplicate copy the
 * theme prints at the top of the article body. */
.single-post .entry-header .post-thumb { display: none; }

/* #6 — Published / Updated date meta on single posts. */
.single-post .entry-meta .entry-date-sep { color: var(--post-muted); }
.single-post .entry-meta .updated-label { font-weight: 600; }
.single-post .entry-meta .entry-date-updated-wrap { white-space: nowrap; }

/* #10 / #9 — the theme adds 120px top/bottom padding on .main-content-area, which
 * left an oversized gap under the hero. Trim it (and much more on mobile). */
.single-post .main-content-area { padding-top: 72px; padding-bottom: 80px; }

@media (max-width: 767px) {
  /* #8 — small gap at the very top of the hero so it isn't flush under the
   * sticky header on small screens. */
  .ktt-blog-hero { margin-top: 12px; }

  /* #2 / #9 — line the post grid and single-post body up with the rounded hero
   * card's 20px inset (they were at ~12px and overhung the hero on mobile). */
  .ktt-blog-archive.container,
  .single-post .main-content > section > .container,
  /* Single-career: body + "Recent jobs" slider aligned to the hero's 20px inset. */
  .single-career .ktt-career-single > .container,
  .single-career .ktt-related > .container { padding-left: 20px; padding-right: 20px; }

  /* #10 — reduce the hero-to-content gap on mobile. */
  .single-post .main-content-area { padding-top: 28px; padding-bottom: 48px; }

  /* #3 — shrink the blog filter pills ~30% on mobile. */
  .ktt-blog-filter { gap: 6px 7px; margin: 22px 0 26px; }
  .ktt-filter-pill { padding: 7px 14px; font-size: .6rem; letter-spacing: .03em; }
}

/* ============================================================
 * Related sections — "Recent posts" (blog) + "Recent jobs" slider (careers).
 * ============================================================ */
.ktt-related { padding: 0 0 90px; }
.ktt-related--posts { border-top: 1px solid var(--post-border); padding-top: 54px; margin-top: 24px; }
.ktt-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.ktt-related__title { color: var(--post-heading); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; font-weight: 700; margin: 0; }
.ktt-related__all { color: var(--post-link); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ktt-related__all:hover, .ktt-related__all:focus { color: var(--post-link-hover); }
.ktt-related__grid { margin-top: 4px; }

/* Recent jobs — horizontal scroll-snap slider with pointer-drag (no JS library) */
.ktt-related__track {
  display: flex; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--post-border) transparent;
  cursor: grab;
}
.ktt-related__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ktt-related__track.is-dragging a { pointer-events: none; }
.ktt-related__track::-webkit-scrollbar { height: 8px; }
.ktt-related__track::-webkit-scrollbar-track { background: transparent; }
.ktt-related__track::-webkit-scrollbar-thumb { background: var(--post-border); border-radius: 4px; }
.ktt-related__track > .ktt-career-col { flex: 0 0 300px; max-width: 300px; scroll-snap-align: start; display: flex; }
@media (max-width: 600px) { .ktt-related__track > .ktt-career-col { flex-basis: 82%; max-width: 82%; } }

/* "Back to careers" card — higher specificity so it beats the later-loaded
 * careers-list `.ktt-role-card { background: var(--post-stripe) }`. */
.ktt-role-card.ktt-role-card--back { background: var(--post-th-bg); border-color: var(--post-th-bg); justify-content: center; }
.ktt-role-card.ktt-role-card--back:hover { border-color: var(--post-bq-border); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.ktt-role-card.ktt-role-card--back .ktt-role-card__title { color: #fff; }
.ktt-role-card.ktt-role-card--back .ktt-role-card__cta { color: #86d993; margin-top: 14px; }
.ktt-role-card.ktt-role-card--back .ktt-role-card--back__icon { display: inline-block; font-size: 2.1rem; line-height: 1; color: #86d993; margin: 0 0 16px; }

