/* ================================================================
   News / Blog archives + single posts
   Native Bricks templates, scoped under .tkk-blog-*.
   ================================================================ */

.tkk-blog-section {
  width: 100%;
  padding: 38px 0 68px;
  background: #f6f8fb;
  color: #182230;
}

.tkk-blog-container {
  width: min(var(--tkk-container, 1320px), calc(100% - 40px));
  max-width: var(--tkk-container, 1320px);
  margin-inline: auto;
  padding: 0;
  gap: 28px;
}

.tkk-blog-eyebrow {
  margin: 0;
  color: var(--tkk-blue-700, #2f66c8);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

/* ================================================================
   Archive / category / tag
   ================================================================ */

.tkk-blog-archive-hero {
  position: relative;
  padding: 31px 34px 30px;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 16%, rgba(64, 120, 213, 0.13), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 10px 28px rgba(33, 69, 118, 0.055);
}

.tkk-blog-archive-hero::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -82px;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(64, 120, 213, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.tkk-blog-archive-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #172033;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.tkk-blog-archive-description {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 1px 0 0;
  color: #64758b;
  font-size: 15px;
  line-height: 1.7;
}

.tkk-blog-archive-description:empty {
  display: none;
}

.tkk-blog-posts {
  width: 100%;
}

.tkk-blog-posts .bricks-layout-wrapper {
  --columns: 3 !important;
  --gutter: 22px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 22px !important;
  margin: 0 !important;
}

.tkk-blog-posts .bricks-layout-item {
  width: auto !important;
  height: auto !important;
  min-width: 0;
  min-height: 0 !important;
  align-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(31, 65, 111, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tkk-blog-posts .bricks-layout-item:hover {
  transform: translateY(-3px);
  border-color: #bfd0ea;
  box-shadow: 0 14px 32px rgba(31, 65, 111, 0.105);
}

.tkk-blog-posts .bricks-layout-inner {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.tkk-blog-posts figure,
.tkk-blog-posts .image-wrapper,
.tkk-blog-posts .image {
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  margin: 0;
  overflow: hidden;
  background: #edf2f8;
}

.tkk-blog-posts figure > a,
.tkk-blog-posts .image-wrapper > a {
  width: 100%;
  height: 100%;
  display: block;
}

.tkk-blog-posts img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.28s ease;
}

.tkk-blog-posts .bricks-layout-item:hover img {
  transform: scale(1.025);
}

.tkk-blog-posts .content-wrapper {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 18px 19px 20px !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0;
  background: #fff;
  text-align: left !important;
}

/* Field 1: categories */
.tkk-blog-posts .content-wrapper > .dynamic:first-child {
  margin: 0 0 9px !important;
  color: var(--tkk-blue-700, #2f66c8);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tkk-blog-posts .content-wrapper > .dynamic:first-child a {
  color: inherit;
  text-decoration: none;
}

/* Field 2: title */
.tkk-blog-posts .content-wrapper h2.dynamic,
.tkk-blog-posts .content-wrapper h2 {
  min-height: 0 !important;
  margin: 0 0 9px !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #172033;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.tkk-blog-posts .content-wrapper h2 a {
  color: inherit;
  text-decoration: none;
}

.tkk-blog-posts .content-wrapper h2 a:hover {
  color: var(--tkk-blue-700, #2f66c8);
}

/* Field 3: date */
.tkk-blog-posts .content-wrapper > .dynamic:nth-child(3) {
  margin: 0 0 10px !important;
  color: #8a97a9;
  font-size: 12px;
  line-height: 1.4;
}

/* Field 4: excerpt */
.tkk-blog-posts .content-wrapper > .dynamic:last-child {
  margin: 0 !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #617187;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.tkk-blog-posts .bricks-pagination {
  grid-column: 1 / -1;
  width: 100%;
  margin: 10px 0 0;
}

.tkk-blog-posts .bricks-pagination ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  list-style: none;
}

.tkk-blog-posts .bricks-pagination a,
.tkk-blog-posts .bricks-pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e2ed;
  border-radius: 7px;
  background: #fff;
  color: #40536d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tkk-blog-posts .bricks-pagination .current,
.tkk-blog-posts .bricks-pagination a:hover {
  border-color: var(--tkk-blue-600, #4078d5);
  background: var(--tkk-blue-600, #4078d5);
  color: #fff;
}

/* ================================================================
   Single article
   ================================================================ */

.tkk-blog-single-container {
  align-items: center;
  gap: 26px;
}

.tkk-blog-article-header,
.tkk-blog-article-content,
.tkk-blog-support-card,
.tkk-blog-post-navigation,
.tkk-blog-related-section {
  width: min(100%, 940px);
}

.tkk-blog-article-header {
  padding: 30px 36px 0;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e0e7f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 65, 111, 0.06);
}

.tkk-blog-single-category {
  margin: 0;
  color: var(--tkk-blue-700, #2f66c8);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.tkk-blog-single-category a {
  color: inherit;
  text-decoration: none;
}

.tkk-blog-single-title {
  margin: 0;
  color: #111827;
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.032em;
}

.tkk-blog-single-date {
  margin: 0 0 13px;
  color: #7a8799;
  font-size: 13px;
  line-height: 1.45;
}

.tkk-blog-featured-image {
  width: calc(100% + 72px);
  max-width: none;
  margin: 5px -36px 0;
  overflow: hidden;
  border-radius: 0 0 13px 13px;
  background: #edf2f8;
}

.tkk-blog-featured-image figure,
.tkk-blog-featured-image a,
.tkk-blog-featured-image img {
  width: 100%;
  display: block;
}

.tkk-blog-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tkk-blog-article-content {
  padding: 34px 42px 42px;
  border: 1px solid #e0e7f1;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  font-size: 17px;
  line-height: 1.82;
  box-shadow: 0 9px 26px rgba(31, 65, 111, 0.05);
}

.tkk-blog-article-content > :first-child {
  margin-top: 0;
}

.tkk-blog-article-content > :last-child {
  margin-bottom: 0;
}

.tkk-blog-article-content p {
  margin: 0 0 1.15em;
}

.tkk-blog-article-content h2,
.tkk-blog-article-content h3,
.tkk-blog-article-content h4 {
  color: #172033;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.tkk-blog-article-content h2 {
  margin: 1.65em 0 0.62em;
  font-size: clamp(24px, 2.7vw, 30px);
  line-height: 1.3;
}

.tkk-blog-article-content h3 {
  margin: 1.5em 0 0.58em;
  font-size: 21px;
  line-height: 1.35;
}

.tkk-blog-article-content h4 {
  margin: 1.35em 0 0.55em;
  font-size: 18px;
  line-height: 1.4;
}

.tkk-blog-article-content a {
  color: var(--tkk-blue-700, #2f66c8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tkk-blog-article-content a:hover {
  color: var(--tkk-blue-800, #2454a4);
}

.tkk-blog-article-content ul,
.tkk-blog-article-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.tkk-blog-article-content li {
  margin-bottom: 0.38em;
}

.tkk-blog-article-content blockquote {
  margin: 1.5em 0;
  padding: 18px 21px;
  border-left: 4px solid var(--tkk-blue-600, #4078d5);
  border-radius: 0 8px 8px 0;
  background: #f6f9ff;
  color: #42566f;
  font-size: 16px;
}

.tkk-blog-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.tkk-blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.tkk-blog-article-content figure {
  max-width: 100%;
  margin: 1.5em auto;
}

.tkk-blog-article-content figcaption {
  margin-top: 8px;
  color: #8491a3;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.tkk-blog-article-content table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  border: 1px solid #dfe6ef;
  background: #fff;
  font-size: 14px;
}

.tkk-blog-article-content th,
.tkk-blog-article-content td {
  padding: 10px 12px;
  border: 1px solid #dfe6ef;
  text-align: left;
  vertical-align: top;
}

.tkk-blog-article-content th {
  background: #f5f8fc;
  color: #263b56;
  font-weight: 700;
}

/* Support CTA */
.tkk-blog-support-card {
  padding: 28px 30px;
  gap: 8px;
  border: 1px solid #c8d9f3;
  border-radius: 13px;
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #3c72ce 0%, #2d5fad 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(36, 84, 164, 0.14);
}

.tkk-blog-support-title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

.tkk-blog-support-text {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.65;
}

.tkk-blog-support-actions {
  width: auto;
  margin-top: 9px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 9px;
}

.tkk-blog-button.bricks-button {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.tkk-blog-button--primary.bricks-button {
  border: 1px solid #fff;
  background: #fff;
  color: var(--tkk-blue-800, #2454a4);
}

.tkk-blog-button--primary.bricks-button:hover {
  border-color: #edf4ff;
  background: #edf4ff;
  color: var(--tkk-blue-800, #2454a4);
}

.tkk-blog-button--outline.bricks-button {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: transparent;
  color: #fff;
}

.tkk-blog-button--outline.bricks-button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

/* Previous / next */
.tkk-blog-post-navigation {
  padding: 20px 0;
  border-top: 1px solid #dde5ef;
  border-bottom: 1px solid #dde5ef;
}

.tkk-blog-post-navigation a {
  color: #314866;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tkk-blog-post-navigation a:hover {
  color: var(--tkk-blue-700, #2f66c8);
}

/* Related posts */
.tkk-blog-related-section {
  gap: 15px;
}

.tkk-blog-related-heading {
  margin: 0;
  color: #172033;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.tkk-blog-related-posts {
  width: 100%;
}

.tkk-blog-related-posts ul {
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.tkk-blog-related-posts li {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e7f1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(31, 65, 111, 0.05);
}

.tkk-blog-related-posts li > a,
.tkk-blog-related-posts .image {
  width: 100%;
  display: block;
  overflow: hidden;
}

.tkk-blog-related-posts img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.tkk-blog-related-posts .post-content {
  padding: 15px 16px 17px;
}

.tkk-blog-related-posts .post-content .dynamic:first-child {
  margin: 0 0 7px;
  color: #8a97a9;
  font-size: 12px;
}

.tkk-blog-related-posts .post-content h3 {
  margin: 0 0 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #172033;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
}

.tkk-blog-related-posts .post-content h3 a {
  color: inherit;
  text-decoration: none;
}

.tkk-blog-related-posts .post-content h3 a:hover {
  color: var(--tkk-blue-700, #2f66c8);
}

.tkk-blog-related-posts .post-content .dynamic:last-child {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #66768c;
  font-size: 13px;
  line-height: 1.55;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 991px) {
  .tkk-blog-posts .bricks-layout-wrapper {
    --columns: 2 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tkk-blog-article-header,
  .tkk-blog-article-content,
  .tkk-blog-support-card,
  .tkk-blog-post-navigation,
  .tkk-blog-related-section {
    width: min(100%, 860px);
  }

  .tkk-blog-related-posts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tkk-blog-section {
    padding: 28px 0 46px;
  }

  .tkk-blog-container {
    width: calc(100% - 28px);
    gap: 21px;
  }

  .tkk-blog-archive-hero {
    padding: 24px 21px;
    border-radius: 10px;
  }

  .tkk-blog-posts .bricks-layout-wrapper {
    --columns: 1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .tkk-blog-posts .content-wrapper h2.dynamic,
  .tkk-blog-posts .content-wrapper h2 {
    min-height: 0;
    font-size: 17px;
  }

  .tkk-blog-article-header {
    padding: 24px 20px 0;
    border-radius: 11px;
  }

  .tkk-blog-featured-image {
    width: calc(100% + 40px);
    margin-inline: -20px;
    border-radius: 0 0 10px 10px;
  }

  .tkk-blog-single-title {
    font-size: clamp(29px, 8vw, 38px);
  }

  .tkk-blog-article-content {
    padding: 26px 21px 30px;
    border-radius: 11px;
    font-size: 16px;
    line-height: 1.78;
  }

  .tkk-blog-support-card {
    padding: 24px 21px;
  }

  .tkk-blog-related-posts ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .tkk-blog-container {
    width: calc(100% - 22px);
  }

  .tkk-blog-support-actions {
    width: 100%;
    flex-direction: column !important;
  }

  .tkk-blog-button.bricks-button {
    width: 100%;
  }

  .tkk-blog-article-content table {
    font-size: 12px;
  }

  .tkk-blog-article-content th,
  .tkk-blog-article-content td {
    padding: 8px;
  }
}
