/* Content writer (author) profile page */
.dtm-author-page {
  background: #fbfbfb;
  padding-bottom: 60px;
}

.dtm-author-page__banner {
  text-align: center;
  padding: 130px 20px 55px;
  position: relative;
  background: linear-gradient(to bottom, #f5edff 0%, #fcfafd 100%);
  overflow: hidden;
}

.dtm-author-page__banner h1 {
  font-size: clamp(28px, 4vw, 42px);
  color: #181b1b;
  font-family: Cambria-Bold, Georgia, serif;
  margin: 0 0 8px;
}

.dtm-author-page__banner p {
  margin: 0;
  font-size: 16px;
  color: #5d5d5d;
}

.dtm-author-page__banner .bannerGer01,
.dtm-author-page__banner .bannerGer02 {
  position: absolute;
  bottom: -10px;
}

.dtm-author-page__banner .bannerGer01 { left: 0; }
.dtm-author-page__banner .bannerGer02 { right: 0; }

.dtm-author-page__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.dtm-author-page__profile-wrap {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.dtm-author-page__profile-wrap .content-author-box.dtm-author-card {
  margin: 0;
}

.dtm-author-page__profile-wrap .dtm-author-card__btn--articles {
  display: none;
}

.dtm-author-page__articles {
  margin-top: 42px;
  padding: 0 !important;
  background: transparent !important;
}

.dtm-author-page__articles .insights-post-card__inner,
.dtm-author-page__articles .item-content-bkg {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dtm-author-page__articles .insights-post-card__inner:hover,
.dtm-author-page__articles .item-content-bkg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.dtm-author-page__articles .insights-post-card__media,
.dtm-author-page__articles .item-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
}

.dtm-author-page__articles .insights-post-card__media img,
.dtm-author-page__articles .item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dtm-author-page__articles .insights-post-card__body,
.dtm-author-page__articles .item-content-bkg figcaption {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  text-align: left !important;
}

.dtm-author-page__articles .insights-post-card__title,
.dtm-author-page__articles .post-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35;
  margin: 0 0 10px;
}

.dtm-author-page__articles .insights-post-card__title a,
.dtm-author-page__articles .post-title a {
  color: #111827 !important;
  text-decoration: none !important;
}

.dtm-author-page__articles .insights-post-card__title a:hover,
.dtm-author-page__articles .post-title a:hover {
  color: #dfa13c !important;
}

.dtm-author-page__articles .insights-post-card__excerpt,
.dtm-author-page__articles .post-content {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 14px;
  flex: 1;
}

.dtm-author-page__articles .insights-post-card__meta,
.dtm-author-page__articles .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.dtm-author-page__articles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8eaed;
}

.dtm-author-page__articles-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-family: Cambria-Bold, Georgia, serif;
  color: #181b1b;
}

.dtm-author-page__articles-count {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  padding: 6px 14px;
}

.dtm-author-page__grid {
  background: transparent !important;
  padding: 0 !important;
}

.dtm-author-page__grid .insights-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.dtm-author-page__grid .insights-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
  padding: 0;
  grid-column: 1 / -1;
  width: 100%;
}

.dtm-author-page__grid .insights-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dtm-author-page__grid .insights-load-more-btn:hover {
  color: #dfa13c;
  border-color: #dfa13c;
  box-shadow: 0 4px 14px rgba(223, 161, 60, 0.15);
}

.dtm-author-page__grid .insights-load-more-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.dtm-author-page__grid .insights-load-more-btn.is-error {
  color: #b42318;
  border-color: #fecdca;
  background: #fff5f5;
}

.dtm-author-page__empty {
  text-align: center;
  padding: 48px 20px;
  color: #6b7280;
  font-size: 16px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
}

@media (max-width: 1199px) {
  .dtm-author-page__grid .insights-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dtm-author-page__banner {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .dtm-author-page__grid .insights-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Content writers archive (/contentwriter/) */
.dtm-cw-archive {
  background: #fbfbfb;
  padding-bottom: 64px;
}

.dtm-cw-archive__banner {
  text-align: center;
  padding: 130px 20px 56px;
  position: relative;
  background: linear-gradient(to bottom, #f5edff 0%, #fcfafd 100%);
  overflow: hidden;
}

.dtm-cw-archive__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff710d;
}

.dtm-cw-archive__banner h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  color: #181b1b;
  font-family: Cambria-Bold, Georgia, serif;
}

.dtm-cw-archive__lead {
  max-width: 680px;
  margin: 0 auto 18px;
  font-size: 16px;
  line-height: 1.65;
  color: #5d5d5d;
}

.dtm-cw-archive__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8eaed;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.dtm-cw-archive__banner .bannerGer01,
.dtm-cw-archive__banner .bannerGer02 {
  position: absolute;
  bottom: -10px;
}

.dtm-cw-archive__banner .bannerGer01 { left: 0; }
.dtm-cw-archive__banner .bannerGer02 { right: 0; }

.dtm-cw-archive__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 20px 0;
  position: relative;
  z-index: 2;
}

.dtm-cw-archive__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Author archive cards — editorial horizontal layout */
.dtm-cw-card {
  position: relative;
  height: 100%;
}

.dtm-cw-card__glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.14), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.dtm-cw-card:hover .dtm-cw-card__glow {
  opacity: 1;
}

.dtm-cw-card__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 22px;
  height: 100%;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 12px 32px rgba(16, 24, 40, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.dtm-cw-card:hover .dtm-cw-card__panel {
  transform: translateY(-4px);
  border-color: rgba(255, 113, 13, 0.22);
  box-shadow:
    0 2px 6px rgba(16, 24, 40, 0.05),
    0 20px 48px rgba(16, 24, 40, 0.1);
}

.dtm-cw-card__aside {
  flex: 0 0 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dtm-cw-card__avatar-link {
  display: block;
  text-decoration: none;
}

.dtm-cw-card__avatar {
  width: 118px;
  height: 118px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff8f1, #f4efff);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 14px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dtm-cw-card:hover .dtm-cw-card__avatar {
  transform: scale(1.03);
}

.dtm-cw-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dtm-cw-card__avatar-fallback {
  font-size: 42px;
  font-weight: 800;
  color: #ff710d;
  line-height: 1;
}

.dtm-cw-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dtm-cw-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dtm-cw-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dtm-cw-card__title-wrap {
  min-width: 0;
}

.dtm-cw-card__name {
  margin: 0 0 6px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.2;
  font-weight: 800;
  font-family: Cambria-Bold, Georgia, serif;
  letter-spacing: -0.02em;
}

.dtm-cw-card__name a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dtm-cw-card__name a:hover {
  color: #ff710d;
}

.dtm-cw-card__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.dtm-cw-card__designation {
  font-weight: 600;
  color: #374151;
}

.dtm-cw-card__meta-sep {
  margin: 0 4px;
  color: #d1d5db;
}

.dtm-cw-card__company {
  color: #ff710d;
  font-weight: 700;
}

.dtm-cw-card__social {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #0a66c2;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dtm-cw-card__social:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.dtm-cw-card__bio {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #5b6472;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dtm-cw-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.dtm-cw-card__topics li {
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff4ea 100%);
  border: 1px solid #fde6cc;
  color: #9a4b00;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.dtm-cw-card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dtm-cw-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dtm-cw-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #edf0f4;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.dtm-cw-card__chip strong {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.dtm-cw-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.dtm-cw-card__cta:hover {
  background: #ff710d;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 113, 13, 0.28);
}

.dtm-cw-card__cta svg {
  transition: transform 0.25s ease;
}

.dtm-cw-card__cta:hover svg {
  transform: translateX(3px);
}

.dtm-cw-archive__empty {
  text-align: center;
  padding: 48px 20px;
  color: #6b7280;
  font-size: 16px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
}

.dtm-cw-archive .navigation.pagination {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 1199px) {
  .dtm-cw-archive__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dtm-cw-archive__banner {
    padding-top: 110px;
    padding-bottom: 42px;
  }

  .dtm-cw-archive__inner {
    padding-top: 24px;
  }

  .dtm-cw-archive__grid {
    gap: 18px;
  }

  .dtm-cw-card__panel {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 18px;
  }

  .dtm-cw-card__aside {
    flex-basis: auto;
    width: 100%;
  }

  .dtm-cw-card__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dtm-cw-card__topics {
    justify-content: center;
  }

  .dtm-cw-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .dtm-cw-card__chips {
    justify-content: center;
  }

  .dtm-cw-card__cta {
    justify-content: center;
    width: 100%;
  }
}
