/* The theme prints the semantic page title before the shortcode content. */
.ntelecom-wp-fallback article.page > h1:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The blog hub no longer uses the oversized decorative GUIDE emblem. */
.ntgh-hero__grid {
  display: block;
}

.ntgh-hero__grid > div:first-child {
  width: 100%;
}

.ntgh-hero .ntgh-search {
  max-width: 920px;
}

/* The fallback theme reserves a large page-top area; the hub needs only a compact lead-in. */
.ntelecom-wp-fallback > main.container {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 52px !important;
}

.ntgh,
.ntgh * {
  min-width: 0;
}

.ntgh-hero__title {
  margin: 0 0 24px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.13;
  letter-spacing: -4px;
}

.ntgh-hero__title em {
  color: var(--ntgh-blue);
  font-style: normal;
}

.ntgh-hero__visual > .ntgh-hero__favicon {
  display: block;
  width: 68%;
  max-width: 292px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 24, 70, 0.18));
}

.ntgh-path-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ntgh-path-grid a {
  min-height: 190px;
  padding: 24px 20px;
}

.ntgh-path-grid strong {
  font-size: 20px;
}

.ntgh-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  max-width: 620px;
  margin-top: 30px;
  padding: 7px;
  border: 1px solid #d6e1ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(19, 58, 116, 0.08);
}

.ntgh-search input {
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: var(--ntgh-ink);
  background: transparent;
  font: inherit;
}

.ntgh-search button {
  min-width: 78px;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--ntgh-blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ntgh-topics,
.ntgh-featured,
.ntgh-home-latest {
  padding: 96px 0;
}

.ntgh-featured {
  padding-top: 0;
}

.ntgh-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ntgh-topic-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid var(--ntgh-line);
  border-radius: 14px;
  color: var(--ntgh-ink);
  background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.ntgh-topic-grid a:hover {
  border-color: #9ec4fa;
  box-shadow: 0 12px 28px rgba(24, 73, 145, 0.08);
  transform: translateY(-3px);
}

.ntgh-topic-grid strong {
  font-size: 15px;
}

.ntgh-topic-grid span {
  flex: none;
  color: #7c899d;
  font-size: 11px;
}

.ntgh-card h3 {
  margin: 15px 0 11px;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -.8px;
}

.ntgh-card h3 a {
  color: var(--ntgh-ink);
}

/* Keep the automatic article list compact while preserving readable cards. */
.ntgh-latest .ntgh-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ntgh-latest .ntgh-card__media {
  aspect-ratio: 16 / 9;
}

.ntgh-latest .ntgh-card__body {
  padding: 16px 16px 18px;
}

.ntgh-latest .ntgh-card__meta {
  gap: 7px;
  font-size: 10px;
}

.ntgh-latest .ntgh-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: -.55px;
}

.ntgh-latest .ntgh-card p {
  min-height: 40px;
  font-size: 12px;
  line-height: 1.65;
}

.ntgh-latest .ntgh-card__link {
  margin-top: 12px;
  font-size: 11px;
}

.ntgh-card--featured h3 {
  font-size: 30px;
  line-height: 1.38;
}

.ntgh-home-latest {
  color: var(--ntgh-ink);
  background: #f7f9fc;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

.ntgh-home-latest *,
.ntgh-home-latest *::before,
.ntgh-home-latest *::after {
  box-sizing: border-box;
}

.ntgh-home-latest a {
  text-decoration: none;
}

.ntgh-home-latest__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.ntgh-home-latest__head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -2px;
}

.ntgh-home-latest__head > a {
  flex: none;
  color: var(--ntgh-blue);
  font-size: 14px;
  font-weight: 850;
}

/* Keep the homepage preview noticeably smaller than the full blog listing. */
.ntgh-home-latest {
  padding: 58px 0;
}

.ntgh-home-latest .ntgh-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ntgh-home-latest .ntgh-card {
  min-width: 0;
  border-radius: 14px;
}

.ntgh-home-latest .ntgh-card__media {
  aspect-ratio: 16 / 8;
}

.ntgh-home-latest .ntgh-card__body {
  padding: 15px 16px 17px;
}

.ntgh-home-latest .ntgh-card__meta {
  gap: 7px;
  font-size: 10px;
}

.ntgh-home-latest .ntgh-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  margin: 9px 0 7px;
  font-size: 16px;
  line-height: 1.42;
  letter-spacing: -.5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ntgh-home-latest .ntgh-card p {
  min-height: 38px;
  font-size: 11.5px;
  line-height: 1.6;
}

.ntgh-home-latest .ntgh-card__link {
  margin-top: 10px;
  font-size: 10.5px;
}

@media (max-width: 900px) {
  .ntgh-path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ntgh-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ntgh-latest .ntgh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .ntelecom-wp-fallback > main.container {
    padding: 28px 0 72px !important;
  }

  .ntgh-search {
    grid-template-columns: minmax(0, 1fr) 64px;
    width: 100%;
    max-width: 100%;
    gap: 6px;
    padding: 5px;
  }

  .ntgh-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    font-size: 16px;
  }

  .ntgh-search button {
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
  }

  .ntgh-hero__title {
    font-size: 43px;
    letter-spacing: -3px;
  }

  .ntgh-hero__visual > .ntgh-hero__favicon {
    width: 70%;
    max-width: 190px;
  }

  .ntgh-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntgh-path-grid a {
    min-height: 138px;
    padding: 18px 16px;
  }

  .ntgh-path-grid a:last-child {
    grid-column: 1 / -1;
    min-height: 105px;
  }

  .ntgh-path-grid strong {
    font-size: 18px;
    line-height: 1.35;
  }

  .ntgh-path-grid small {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
  }

  .ntgh-path-grid i {
    top: 17px;
    right: 15px;
  }

  .ntgh-topics,
  .ntgh-featured,
  .ntgh-home-latest {
    padding: 72px 0;
  }

  .ntgh-featured {
    padding-top: 0;
  }

  .ntgh-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ntgh-topic-grid a {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 68px;
    padding: 10px 8px;
    border-radius: 12px;
  }

  .ntgh-topic-grid strong {
    font-size: 12px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .ntgh-topic-grid span {
    font-size: 10px;
  }

  .ntgh-latest .ntgh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .ntgh-latest .ntgh-card {
    min-width: 0;
    border-radius: 14px;
  }

  .ntgh-latest .ntgh-card__media {
    aspect-ratio: 16 / 10;
  }

  .ntgh-latest .ntgh-card__body {
    padding: 11px 11px 13px;
  }

  .ntgh-latest .ntgh-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
  }

  .ntgh-latest .ntgh-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 58px;
    margin: 7px 0 6px;
    font-size: 13.5px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ntgh-latest .ntgh-card p {
    display: none;
  }

  .ntgh-latest .ntgh-card__link {
    margin-top: 7px;
    font-size: 10px;
  }

  .ntgh-home-latest__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
  }

  .ntgh-home-latest {
    padding: 44px 0;
  }

  .ntgh-home-latest .ntgh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  /* Keep the mobile homepage preview to two rows (2 columns × 2 rows). */
  .ntgh-home-latest .ntgh-card:nth-child(n + 5) {
    display: none;
  }

  .ntgh-home-latest .ntgh-card__media {
    aspect-ratio: 16 / 9;
  }

  .ntgh-home-latest .ntgh-card__body {
    padding: 10px 10px 12px;
  }

  .ntgh-home-latest .ntgh-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 8.5px;
  }

  .ntgh-home-latest .ntgh-card h3 {
    min-height: 52px;
    margin: 6px 0 5px;
    font-size: 12.5px;
    line-height: 1.4;
    -webkit-line-clamp: 3;
  }

  .ntgh-home-latest .ntgh-card p {
    display: none;
  }

  .ntgh-home-latest .ntgh-card__link {
    margin-top: 6px;
    font-size: 9.5px;
  }

  .ntgh-card--featured h3 {
    font-size: 23px;
  }
}
