/* Ana sayfa — blog önizleme kartları */
.tg-home-blog {
  padding: clamp(72px, 8vw, 100px) 0;
  background: #f6f7fb;
  font-family: var(--tp-ff-dm, "DM Sans", sans-serif);
}

.tg-home-blog__inner {
  max-width: 1524px;
  margin: 0 auto;
  padding: 0 24px;
}

.tg-home-blog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.1);
}

.tg-home-blog__kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1b5de7;
}

.tg-home-blog__head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0b1220 !important;
}

.tg-home-blog__head p {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: #5b6478;
}

.tg-home-blog__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(27, 93, 231, 0.22);
  border-radius: 2px;
  background: #fff;
  color: #1b5de7 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tg-home-blog__all:hover {
  background: rgba(27, 93, 231, 0.06);
  border-color: rgba(27, 93, 231, 0.4);
  color: #164fc4 !important;
}

.tg-home-blog__all svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tg-home-blog__all:hover svg {
  transform: translateX(2px);
}

.tg-home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.tg-home-blog__grid:has(> .tg-home-blog__card:only-child) {
  grid-template-columns: minmax(0, 420px);
}

.tg-home-blog__grid:has(> .tg-home-blog__card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-home-blog__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tg-home-blog__card:hover {
  border-color: rgba(27, 93, 231, 0.22);
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.08);
}

.tg-home-blog__media {
  display: block;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  overflow: hidden;
  background: #e8ecf4;
}

.tg-home-blog__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.tg-home-blog__card:hover .tg-home-blog__media img {
  transform: scale(1.03);
}

.tg-home-blog__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 20px 20px 18px;
}

.tg-home-blog__cat {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(27, 93, 231, 0.18);
  border-radius: 2px;
  background: rgba(27, 93, 231, 0.06);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1b5de7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-home-blog__cat a {
  color: inherit;
  text-decoration: none;
}

.tg-home-blog__cat a:hover {
  color: #164fc4;
}

.tg-home-blog__title {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0b1220 !important;
}

.tg-home-blog__title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.tg-home-blog__title a:hover {
  color: #1b5de7 !important;
}

.tg-home-blog__excerpt {
  margin: 0 0 16px;
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
  color: #5b6478;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-home-blog__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

.tg-home-blog__meta {
  font-size: 12px;
  font-weight: 500;
  color: rgba(11, 18, 32, 0.52);
  letter-spacing: 0.01em;
}

.tg-home-blog__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1b5de7 !important;
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease;
}

.tg-home-blog__link:hover {
  color: #164fc4 !important;
  gap: 8px;
}

.tg-home-blog__link svg {
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .tg-home-blog__grid,
  .tg-home-blog__grid:has(> .tg-home-blog__card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-home-blog__grid:has(> .tg-home-blog__card:only-child) {
    grid-template-columns: minmax(0, 480px);
  }
}

@media (max-width: 575.98px) {
  .tg-home-blog__grid,
  .tg-home-blog__grid:has(> .tg-home-blog__card:nth-child(2):last-child),
  .tg-home-blog__grid:has(> .tg-home-blog__card:only-child) {
    grid-template-columns: 1fr;
  }

  .tg-home-blog__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tg-home-blog__media {
    max-height: none;
  }
}
