/* Tetraglobe — blog/haber yazı detayı */
body.tg-post-page #masthead,
body.tg-post-page .ast-primary-header-bar {
  background: #fff !important;
  position: relative !important;
  z-index: 100;
}
body.tg-post-page .ast-primary-header-bar {
  border-bottom: 1px solid #e8edf5;
}
body.tg-post-page .site-content.tg-post-content,
body.tg-post-page #content.tg-post-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none;
  width: 100%;
}

.tg-post {
  --tg-ink: #152238;
  --tg-muted: #5c6b82;
  --tg-line: #e4e9f1;
  --tg-surface: #f4f6fa;
  --tg-accent: #1e3a5f;
  --tg-accent-2: #c45c26;
  background: var(--tg-surface);
  padding: 0 0 72px;
}

.tg-post__hero {
  position: relative;
  min-height: clamp(280px, 42vw, 460px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #152238;
}

.tg-post__hero-media {
  position: absolute;
  inset: 0;
}

.tg-post__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.tg-post__hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 24, 42, 0.25) 0%, rgba(15, 24, 42, 0.55) 45%, rgba(15, 24, 42, 0.88) 100%),
    linear-gradient(90deg, rgba(21, 34, 56, 0.35), transparent 55%);
}

.tg-post__hero--plain {
  min-height: 220px;
  background:
    linear-gradient(135deg, #152238 0%, #1e3a5f 55%, #3d4f6f 100%);
}

.tg-post__hero-inner {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 40px;
}

.tg-post__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tg-post__crumb a {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
}

.tg-post__crumb a:hover {
  color: #fff !important;
}

.tg-post__crumb span {
  opacity: 0.45;
}

.tg-post__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.tg-post__title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.tg-post__lead {
  margin: 0 0 18px;
  max-width: 42em;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.tg-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.tg-post__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tg-post__meta strong {
  font-weight: 600;
  color: #fff;
}

.tg-post__wrap {
  width: min(820px, calc(100% - 40px));
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
}

.tg-post__card {
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(21, 34, 56, 0.08);
  padding: clamp(24px, 4vw, 44px);
}

.tg-post__body {
  color: var(--tg-ink);
  font-size: 1.05rem;
  line-height: 1.75;
}

.tg-post__body > *:first-child {
  margin-top: 0;
}

.tg-post__body h2,
.tg-post__body h3 {
  margin: 1.6em 0 0.55em;
  color: var(--tg-ink);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.tg-post__body h2 {
  font-size: 1.45rem;
}

.tg-post__body h3 {
  font-size: 1.2rem;
}

.tg-post__body p {
  margin: 0 0 1.15em;
}

.tg-post__body a {
  color: var(--tg-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tg-post__body a:hover {
  color: var(--tg-accent-2);
}

.tg-post__body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.25em 0;
  display: block;
}

.tg-post__body ul,
.tg-post__body ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.tg-post__body li {
  margin: 0.35em 0;
}

.tg-post__body blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--tg-accent-2);
  background: var(--tg-surface);
  color: var(--tg-muted);
}

.tg-post__foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--tg-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.tg-post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--tg-line);
  border-radius: 4px;
  color: var(--tg-accent) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tg-post__back:hover {
  border-color: var(--tg-accent-2);
  color: var(--tg-accent-2) !important;
}

@media (max-width: 640px) {
  .tg-post__hero-inner {
    padding: 36px 0 28px;
  }

  .tg-post__wrap {
    width: calc(100% - 24px);
    margin-top: -18px;
  }

  .tg-post__card {
    padding: 20px 16px 24px;
  }

  .tg-post__body {
    font-size: 1rem;
  }
}
