/*
Theme Name: WangCloud Hello Child
Description: WangCloud staging child theme for the shared Single Post layout.
Author: WangCloud
Template: hello-elementor
Version: 0.6.0
Text Domain: wangcloud-hello-child
*/

:root {
  --wc-post-ink: #102033;
  --wc-post-body: #334155;
  --wc-post-muted: #718096;
  --wc-post-border: #e8f0f7;
  --wc-post-accent: #1687d9;
  --wc-post-surface: #ffffff;
}

.wc-single-post {
  background: #fff;
  color: var(--wc-post-body);
  font-family: "Open Sans", Poppins, "PingFang TC", "Heiti TC", "Microsoft JhengHei", Arial, sans-serif;
}

.wc-post-banner {
  align-items: center;
  background:
    linear-gradient(rgba(8, 22, 47, 0.72), rgba(8, 22, 47, 0.45)),
    url("assets/images/page-header-bg-2.jpg") center / cover no-repeat;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  min-height: 360px;
  padding: 100px 24px 84px;
  position: relative;
  text-align: center;
}

.wc-post-banner__inner {
  margin: 0 auto;
  max-width: 1116px;
  width: 100%;
}

.wc-post-banner__title {
  color: #fff;
  font-family: Raleway, "Open Sans", Poppins, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 850;
  line-height: 1.2;
  margin: 0 0 10px;
}

.wc-post-banner__description {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 760px;
}

.wc-post-breadcrumbs {
  align-items: center;
  background: linear-gradient(90deg, rgba(30, 72, 126, 0.82), rgba(31, 132, 211, 0.78), rgba(12, 88, 112, 0.76));
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  font-size: 14px;
  left: 0;
  line-height: 1.5;
  min-height: 64px;
  padding: 0 24px;
  position: absolute;
  width: 100%;
}

.wc-post-breadcrumbs__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1116px;
  width: 100%;
}

.wc-post-breadcrumbs a {
  color: #fff;
  text-decoration: none;
}

.wc-post-breadcrumbs a:hover,
.wc-post-breadcrumbs a:focus-visible {
  color: #d6f7ff;
  text-decoration: underline;
}

.wc-post-breadcrumbs__current {
  max-width: min(480px, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-post-section {
  padding: 60px 12px;
}

.wc-post-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 736px) minmax(0, 356px);
  margin: 0 auto;
  max-width: 1116px;
}

.wc-post-article {
  min-width: 0;
}

.wc-post-meta {
  align-items: center;
  color: var(--wc-post-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  border-bottom: 1px solid var(--wc-post-border);
  border-top: 1px solid var(--wc-post-border);
  gap: 8px 22px;
  margin: 0 0 32px;
  padding: 14px 0;
}

.wc-post-meta a {
  color: var(--wc-post-accent);
  text-decoration: none;
}

.wc-post-meta a:hover,
.wc-post-meta a:focus-visible {
  text-decoration: underline;
}

.wc-post-title {
  color: var(--wc-post-ink);
  font-family: Raleway, "Open Sans", Poppins, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 32px;
  font-weight: 850;
  line-height: 1.45;
  margin: 0 0 18px;
}

.wc-post-featured-image {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(12, 35, 64, 0.08);
  display: block;
  height: auto;
  margin: 0 0 36px;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

.wc-post-featured-image img {
  border-radius: inherit;
  display: block;
  height: auto;
  width: 100%;
}

.wc-post-content {
  color: var(--wc-post-body);
  font-size: 16.64px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.wc-post-content p {
  margin: 0 0 16px;
}

.wc-post-content > :first-child {
  margin-top: 0;
}

.wc-post-content h2,
.wc-post-content h3,
.wc-post-content h4 {
  color: var(--wc-post-ink);
  font-family: Raleway, "Open Sans", Poppins, "PingFang TC", "Heiti TC", "Microsoft JhengHei", Arial, sans-serif;
  font-weight: 780;
  line-height: 1.2;
  margin: 32px 0 14px;
}

.wc-post-content h2 {
  font-size: 32px;
}

.wc-post-content h3 {
  font-size: 23px;
}

body.wc-single-template-service .wc-post-content h2 {
  font-size: 28px;
}

.wc-post-content a {
  color: var(--wc-post-accent);
}

.wc-post-content img,
.wc-post-content iframe,
.wc-post-content video {
  height: auto;
  max-width: 100%;
}

.wc-post-tags {
  border-top: 1px solid var(--wc-post-border);
  color: var(--wc-post-muted);
  font-size: 14px;
  margin-top: 34px;
  padding-top: 18px;
}

.wc-post-cta {
  align-items: center;
  background: url("assets/images/single-post-cta-bg.jpg") center / cover no-repeat;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.12);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin-top: 34px;
  min-height: 230px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.wc-post-cta__content {
  box-sizing: border-box;
  color: #fff;
  max-width: 680px;
  padding: 32px 28px;
  position: relative;
  width: 100%;
}

.wc-post-cta__title {
  color: #fff;
  font-family: Raleway, "Open Sans", Poppins, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 35.2px;
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 14px;
}

.wc-post-cta__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  margin: 0 0 22px;
}

.wc-post-cta__button {
  align-items: center;
  background: #0066ff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 15.2px;
  font-weight: 750;
  justify-content: center;
  line-height: 1.5;
  padding: 11px 30px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.wc-post-cta__button:hover,
.wc-post-cta__button:focus-visible {
  background: #004dcc;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.wc-post-cta__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.88);
  outline-offset: 3px;
}

.wc-post-sidebar {
  min-width: 0;
}

.wc-sidebar-card {
  background: var(--wc-post-surface);
  border: 1px solid var(--wc-post-border);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(12, 35, 64, 0.05);
  margin: 0 0 28px;
  padding: 24px;
}

.wc-sidebar-title {
  border: 0;
  color: var(--wc-post-ink);
  display: inline-block;
  font-size: 16.8px;
  font-weight: 850;
  line-height: 1.5;
  margin: 0 0 20px;
  padding: 0 0 12px;
  position: relative;
}

.wc-sidebar-title::after {
  background: var(--wc-post-accent);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}

.wc-sidebar-item {
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  color: var(--wc-post-body);
  display: flex;
  flex-direction: row;
  gap: 12px;
  min-height: 86px;
  padding: 10px 0;
  text-decoration: none;
}

.wc-sidebar-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wc-sidebar-thumb {
  border: 1px solid var(--wc-post-border);
  border-radius: 8px;
  flex: 0 0 66px;
  height: 66px;
  object-fit: cover;
  order: 0;
  width: 66px;
}

.wc-sidebar-info {
  flex: 1 1 0;
  max-width: calc(100% - 78px);
  min-width: 0;
  order: 1;
  width: 0;
}

.wc-sidebar-subject {
  color: var(--wc-post-ink);
  display: -webkit-box;
  font-size: 14.4px;
  font-weight: 750;
  line-height: 1.45;
  margin-bottom: 4px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wc-sidebar-date {
  color: var(--wc-post-muted);
  font-size: 12.48px;
  line-height: 1.5;
}

.wc-sidebar-item:hover .wc-sidebar-subject,
.wc-sidebar-item:focus-visible .wc-sidebar-subject {
  color: var(--wc-post-accent);
}

.wc-sidebar-empty {
  color: var(--wc-post-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0 0;
}

.wc-service-nav {
  background: var(--wc-post-surface);
  border: 1px solid #dfe8f2;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(12, 35, 64, 0.05);
  font-family: "Open Sans", Poppins, "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  overflow: hidden;
}

.wc-service-nav__title {
  background: #0962e9;
  color: #fff;
  font-size: 21.6px;
  font-weight: 850;
  letter-spacing: 0.432px;
  line-height: 1.5;
  margin: 0;
  padding: 18px 22px;
  text-align: center;
}

.wc-service-nav__group {
  border-bottom: 1px solid #dfe8f2;
}

.wc-service-nav__group:last-child {
  border-bottom: 0;
}

.wc-service-nav__summary {
  align-items: center;
  background: #fff;
  color: var(--wc-post-body);
  cursor: pointer;
  display: flex;
  font-size: 14.72px;
  font-weight: 600;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.5;
  list-style: none;
  min-height: 44px;
  padding: 11px 22px;
  transition: background-color 200ms ease, color 200ms ease;
}

.wc-service-nav__summary::-webkit-details-marker {
  display: none;
}

.wc-service-nav__summary:hover {
  color: #0962e9;
}

.wc-service-nav__summary:focus-visible {
  background: #f2f7ff;
  color: #0962e9;
  outline: 3px solid rgba(9, 98, 233, 0.3);
  outline-offset: -3px;
}

.wc-service-nav__group[open] > .wc-service-nav__summary {
  background: #b8cff8;
  box-shadow: none;
  color: var(--wc-post-body);
  font-weight: 600;
}

.wc-service-nav__group.is-current-section > .wc-service-nav__summary {
  color: #0066ff;
  font-weight: 780;
}

.wc-service-nav__chevron {
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  color: #94a3b8;
  flex: 0 0 7px;
  height: 7px;
  transform: rotate(45deg) translateY(-2px);
  transition: color 200ms ease, transform 160ms ease;
  width: 7px;
}

.wc-service-nav__group[open] .wc-service-nav__chevron {
  color: #0066ff;
  transform: rotate(225deg) translate(-2px, -2px);
}

.wc-service-nav__links {
  background: #e8f0fe;
}

.wc-service-nav__link {
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--wc-post-body);
  display: block;
  font-size: 13.44px;
  font-weight: 600;
  line-height: 1.5;
  padding: 8px 22px 8px 42px;
  text-decoration: none;
}

.wc-service-nav__link:hover,
.wc-service-nav__link:focus-visible {
  background: #d5e4f9;
  color: #0962e9;
  text-decoration: none;
}

.wc-service-nav__link:focus-visible {
  outline: 3px solid rgba(9, 98, 233, 0.3);
  outline-offset: -3px;
}

.wc-service-nav__link.is-current {
  background: #c5d8f9;
  color: #0066ff;
  font-weight: 780;
}

.wc-service-nav__empty {
  color: var(--wc-post-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 12px 22px 12px 38px;
}

.error404 .wc-404-page,
.error404 .wc-404-page * {
  box-sizing: border-box;
}

.error404 .wc-404-page {
  background: #fff;
  color: #2c3e50;
  font-family: "Open Sans", Poppins, "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  margin: 0;
  width: 100%;
}

.error404 .wc-404-hero {
  align-items: center;
  background:
    linear-gradient(rgba(8, 22, 47, 0.72), rgba(8, 22, 47, 0.45)),
    url("assets/images/page-header-bg-2.jpg") center / cover no-repeat;
  color: #fff;
  display: flex;
  min-height: 408px;
  padding: 86px 24px 60px;
  position: relative;
  text-align: center;
}

.error404 .wc-404-hero__inner {
  margin: 0 auto;
  max-width: 1116px;
  width: 100%;
}

.error404 .wc-404-code {
  color: #5ee7ff;
  display: inline-block;
  font-size: 112px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 12px;
}

.error404 .wc-404-title {
  color: #fff;
  font-family: Raleway, "Open Sans", Poppins, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 76.8px;
  font-weight: 900;
  letter-spacing: 3.84px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.error404 .wc-404-hero__description {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16.8px;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 760px;
}

.error404 .wc-404-breadcrumbs {
  align-items: center;
  background: rgba(8, 22, 47, 0.25);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  min-height: 62px;
  padding: 0 24px;
  position: absolute;
  width: 100%;
}

.error404 .wc-404-breadcrumbs__inner {
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  margin: 0;
}

.error404 .wc-404-breadcrumbs a {
  color: #5ee7ff;
  text-decoration: none;
}

.error404 .wc-404-breadcrumbs a:hover,
.error404 .wc-404-breadcrumbs a:focus-visible {
  color: #d6f7ff;
  text-decoration: underline;
}

.error404 .wc-404-content {
  background: linear-gradient(#f8fbff 0%, #fff 100%);
  padding: 80px 12px 96px;
}

.error404 .wc-404-content__inner {
  margin: 0 auto;
  max-width: 1116px;
  width: 100%;
}

.error404 .wc-404-card {
  background: #fff;
  border: 1px solid #e8f0f7;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(12, 35, 64, 0.08);
  margin: 0 auto;
  max-width: 720px;
  padding: 56px 36px;
  text-align: center;
}

.error404 .wc-404-card__icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 102, 255, 0.16));
  border-radius: 50%;
  color: #0066ff;
  display: inline-flex;
  height: 88px;
  justify-content: center;
  margin: 0 0 22px;
  width: 88px;
}

.error404 .wc-404-card__icon svg {
  display: block;
  fill: currentColor;
  height: 38.4px;
  width: 38.4px;
}

.error404 .wc-404-card__title {
  color: #102033;
  font-family: Raleway, "Open Sans", Poppins, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 28.8px;
  font-weight: 850;
  line-height: 1.2;
  margin: 0 0 14px;
}

.error404 .wc-404-card__description {
  color: #64748b;
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 30px;
}

.error404 .wc-404-button {
  align-items: center;
  background: linear-gradient(135deg, #0066ff, #0047cc);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.28);
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  gap: 10px;
  line-height: 1.5;
  padding: 14px 36px;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.error404 .wc-404-button:hover,
.error404 .wc-404-button:focus-visible {
  box-shadow: 0 12px 34px rgba(0, 102, 255, 0.36);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.error404 .wc-404-button:focus-visible {
  outline: 3px solid rgba(0, 102, 255, 0.3);
  outline-offset: 4px;
}

.error404 .wc-404-button svg {
  display: block;
  fill: currentColor;
  height: 16px;
  width: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .wc-service-nav__summary,
  .wc-service-nav__chevron,
  .error404 .wc-404-button {
    transition: none;
  }
}

@media (max-width: 900px) {
  .wc-post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wc-post-sidebar {
    margin-top: 12px;
  }
}

@media (max-width: 600px) {
  .error404 .wc-404-hero {
    height: 360px;
    min-height: 360px;
    padding: 86px 12px 60px;
  }

  .error404 .wc-404-code {
    font-size: 64px;
  }

  .error404 .wc-404-title {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .error404 .wc-404-hero__description {
    max-width: none;
  }

  .error404 .wc-404-breadcrumbs {
    padding: 0 12px;
  }

  .error404 .wc-404-card__title {
    font-size: 22.4px;
  }

  .wc-post-banner {
    min-height: 300px;
    padding: 104px 20px 94px;
  }

  .wc-post-banner__title {
    font-size: 40px;
  }

  .wc-post-banner__description {
    font-size: 14px;
  }

  .wc-post-section {
    padding: 40px 20px;
  }

  .wc-post-title {
    font-size: 28px;
    line-height: 1.4;
  }

  .wc-post-content {
    font-size: 16px;
    line-height: 1.85;
  }

  .wc-post-content h2 {
    font-size: 24px;
  }

  body.wc-single-template-service .wc-post-content h2 {
    font-size: 24px;
  }

  .wc-post-cta {
    min-height: 250px;
  }

  .wc-post-cta__content {
    padding: 30px 22px;
  }

  .wc-post-cta__title {
    font-size: 28px;
  }

  .wc-post-cta__description {
    font-size: 15px;
    line-height: 1.75;
  }

  .wc-post-breadcrumbs {
    min-height: 72px;
    padding: 10px 20px;
  }

  .wc-sidebar-card {
    padding: 20px;
  }
}

/* Single Post visual redesign 0.5.0. */
body.wc-single-template-active .wc-single-post,
body.wc-single-template-active .wc-single-post * {
  box-sizing: border-box;
}

body.wc-single-template-active .wc-single-post {
  background: #f5f9fc;
  color: #35475a;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body.wc-single-template-active .wc-post-section {
  background: linear-gradient(180deg, #f5fafe 0%, #fff 24%);
  padding: 54px 32px 92px;
}

body.wc-single-template-active .wc-post-layout {
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 320px;
  max-width: 1240px;
  width: 100%;
}

body.wc-single-template-active .wc-post-primary {
  min-width: 0;
}

body.wc-single-template-active .wc-post-article {
  background: #fff;
  border: 1px solid rgba(207, 224, 238, 0.9);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(24, 69, 104, 0.075);
  padding: 38px 32px 46px;
}

body.wc-single-template-active .wc-post-title {
  color: #0a2540;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(32px, 3vw, 36px);
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.38;
  margin-bottom: 20px;
  text-wrap: balance;
}

body.wc-single-template-active .wc-post-meta {
  border-color: #dbe7f0;
  color: #6b7f94;
  font-size: 13.5px;
  gap: 10px 24px;
  margin-bottom: 30px;
  padding: 13px 0;
}

body.wc-single-template-active .wc-post-featured-image {
  border: 1px solid #d9e5ef;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 54, 86, 0.09);
  margin-bottom: 34px;
}

body.wc-single-template-active .wc-post-content {
  color: #34465a;
  font-size: 18px;
  letter-spacing: 0.005em;
  line-height: 1.82;
}

body.wc-single-template-active .wc-post-content > p {
  margin: 0 auto 1.12em;
  max-width: 720px;
}

body.wc-single-template-active .wc-post-content > ul,
body.wc-single-template-active .wc-post-content > ol,
body.wc-single-template-active .wc-post-content > blockquote {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

body.wc-single-template-active .wc-post-content > ul,
body.wc-single-template-active .wc-post-content > ol {
  margin-bottom: 24px;
  margin-top: 8px;
  padding-left: 1.35em;
}

body.wc-single-template-active .wc-post-content li {
  margin-bottom: 9px;
  padding-left: 0.2em;
}

body.wc-single-template-active .wc-post-content li::marker {
  color: #087dcc;
  font-weight: 700;
}

body.wc-single-template-active .wc-post-content h2,
body.wc-single-template-active .wc-post-content h3,
body.wc-single-template-active .wc-post-content h4 {
  color: #0a2540;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 720;
  letter-spacing: -0.012em;
  max-width: 720px;
  text-wrap: balance;
}

body.wc-single-template-active .wc-post-content h2,
body.wc-single-template-service .wc-post-content h2 {
  font-size: 26px;
  line-height: 1.45;
  margin: 52px auto 18px;
  padding-left: 15px;
  position: relative;
}

body.wc-single-template-active .wc-post-content h2::before {
  background: linear-gradient(#16b8dc, #087dcc);
  border-radius: 999px;
  content: "";
  inset: 0.24em auto 0.24em 0;
  position: absolute;
  width: 4px;
}

body.wc-single-template-active .wc-post-content h3 {
  font-size: 21px;
  line-height: 1.5;
  margin: 38px auto 14px;
}

body.wc-single-template-active .wc-post-content figure:not(.wp-block-table) {
  margin: 30px 0;
}

body.wc-single-template-active .wc-post-content figure:not(.wp-block-table) img {
  border: 1px solid #d9e5ef;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 54, 86, 0.09);
}

body.wc-single-template-active .wc-post-content figcaption {
  color: #6b7f94;
  font-size: 13.5px;
  line-height: 1.65;
  margin-top: 9px;
  text-align: center;
}

body.wc-single-template-active .wc-post-content .wp-block-table {
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(16, 54, 86, 0.055);
  margin: 30px 0 34px;
  overflow-x: auto;
  scrollbar-color: #92bddd #eaf2f8;
  scrollbar-width: thin;
}

body.wc-single-template-active .wc-post-content .wp-block-table table {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.55;
  min-width: 660px;
  table-layout: auto;
  width: 100%;
}

body.wc-single-template-active .wc-post-content .wp-block-table th,
body.wc-single-template-active .wc-post-content .wp-block-table td {
  border-bottom: 1px solid #dce8f1;
  border-left: 0;
  border-right: 1px solid #dce8f1;
  border-top: 0;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

body.wc-single-template-active .wc-post-content .wp-block-table th {
  background: #eaf5fc;
  color: #0b3a5e;
  font-weight: 720;
}

body.wc-single-template-active .wc-post-content .wp-block-table tr:nth-child(even) td {
  background: #f8fbfd;
}

body.wc-single-template-active .wc-post-content .wp-block-table tr:last-child td {
  border-bottom: 0;
}

body.wc-single-template-active .wc-post-content .wp-block-table th:last-child,
body.wc-single-template-active .wc-post-content .wp-block-table td:last-child {
  border-right: 0;
}

body.wc-single-template-active .wc-post-cta {
  background:
    linear-gradient(110deg, rgba(4, 30, 62, 0.78), rgba(6, 92, 136, 0.42)),
    url("assets/images/single-post-cta-bg.jpg") center / cover no-repeat;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.14);
  margin-top: 44px;
  min-height: 0;
}

body.wc-single-template-active .wc-post-cta__content {
  padding: 36px 28px;
}

body.wc-single-template-active .wc-post-cta__title {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 30px;
  font-weight: 750;
  margin-bottom: 10px;
}

body.wc-single-template-active .wc-post-cta__description {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

body.wc-single-template-active .wc-post-sidebar {
  min-width: 0;
  position: sticky;
  top: 116px;
}

body.wc-single-template-active .wc-sidebar-card,
body.wc-single-template-active .wc-service-nav {
  border-color: #dbe7f0;
  box-shadow: 0 12px 30px rgba(16, 54, 86, 0.075);
}

body.wc-single-template-active .wc-sidebar-card {
  margin-bottom: 24px;
  padding: 22px;
}

body.wc-single-template-active .wc-sidebar-title {
  color: #0a2540;
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

body.wc-single-template-active .wc-sidebar-title::after {
  border-radius: 999px;
  height: 3px;
  width: 44px;
}

body.wc-single-template-active .wc-sidebar-item {
  display: grid;
  gap: 13px;
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 90px;
  padding: 11px 0;
}

body.wc-single-template-active .wc-sidebar-thumb {
  border-radius: 9px;
  height: 68px;
  width: 68px;
}

body.wc-single-template-active .wc-sidebar-info {
  max-width: none;
  width: auto;
}

body.wc-single-template-active .wc-sidebar-subject {
  font-size: 14px;
  font-weight: 680;
  line-height: 1.55;
}

body.wc-single-template-active .wc-sidebar-date {
  color: #6b7f94;
  font-size: 12px;
  margin-top: 5px;
}

body.wc-single-template-active .wc-service-nav__title {
  background: linear-gradient(135deg, #087dcc, #075fa7);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
  padding: 18px 22px;
  text-align: left;
}

body.wc-single-template-active .wc-service-nav__summary {
  font-size: 14px;
  min-height: 48px;
  padding: 12px 19px;
}

body.wc-single-template-active .wc-service-nav__group[open] > .wc-service-nav__summary {
  background: #e8f4fb;
  color: #075f9d;
  font-weight: 730;
}

body.wc-single-template-active .wc-service-nav__links {
  background: #f5fafe;
  padding: 5px 12px 12px;
}

body.wc-single-template-active .wc-service-nav__link {
  border: 0;
  border-radius: 8px;
  color: #385269;
  font-size: 13px;
  font-weight: 400;
  margin-top: 5px;
  padding: 9px 11px;
}

body.wc-single-template-active .wc-service-nav__link.is-current {
  background: #087dcc;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1180px) {
  body.wc-single-template-active .wc-post-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 820px;
  }

  body.wc-single-template-active .wc-post-sidebar {
    margin-top: 0;
    position: static;
  }
}

@media (max-width: 600px) {
  body.wc-single-template-active .wc-post-section {
    padding: 22px 12px 54px;
  }

  body.wc-single-template-active .wc-post-layout {
    gap: 22px;
  }

  body.wc-single-template-active .wc-post-article {
    border-radius: 14px;
    padding: 24px 20px 32px;
  }

  body.wc-single-template-active .wc-post-title {
    font-size: 28px;
    line-height: 1.38;
  }

  body.wc-single-template-active .wc-post-content {
    font-size: 17px;
    line-height: 1.82;
  }

  body.wc-single-template-active .wc-post-content h2,
  body.wc-single-template-service .wc-post-content h2 {
    font-size: 23px;
    margin-top: 42px;
    padding-left: 13px;
  }

  body.wc-single-template-active .wc-post-content h3 {
    font-size: 20px;
    margin-top: 32px;
  }

  body.wc-single-template-active .wc-post-content .wp-block-table {
    margin: 24px 0 28px;
  }

  body.wc-single-template-active .wc-post-content .wp-block-table table {
    font-size: 14px;
    min-width: 640px;
  }

  body.wc-single-template-active .wc-post-content .wp-block-table th,
  body.wc-single-template-active .wc-post-content .wp-block-table td {
    padding: 12px 13px;
  }

  body.wc-single-template-active .wc-post-cta__content {
    padding: 30px 20px;
  }

  body.wc-single-template-active .wc-post-cta__title {
    font-size: 26px;
  }
}

/* Single Post v2: user-accepted wider, aligned article layout. */
body.wc-single-template-active .wc-post-layout { max-width:1440px; grid-template-columns:minmax(0,1fr) 300px; }
body.wc-single-template-active .wc-post-article { padding:38px 40px 46px; box-shadow:0 6px 22px rgba(24,69,104,.045); }
body.wc-single-template-active .wc-post-title { text-wrap:wrap; }
body.wc-single-template-active .wc-post-content { font-size:19px; line-height:1.8; }
body.wc-single-template-active .wc-post-content > p,
body.wc-single-template-active .wc-post-content > ul,
body.wc-single-template-active .wc-post-content > ol,
body.wc-single-template-active .wc-post-content > blockquote,
body.wc-single-template-active .wc-post-content h2,
body.wc-single-template-active .wc-post-content h3,
body.wc-single-template-active .wc-post-content h4 { max-width:none; margin-left:0; margin-right:0; }
body.wc-single-template-active .wc-post-content h2 { padding-left:0; text-wrap:wrap; }
body.wc-single-template-active .wc-post-content h2::before { left:-16px; width:3px; }
body.wc-single-template-active .wc-post-content figure:not(.wp-block-table) img { display:block; width:100%; height:auto; box-shadow:0 4px 14px rgba(16,54,86,.045); }
body.wc-single-template-active .wc-post-content .wp-block-table { box-shadow:none; }
body.wc-single-template-active .wc-post-content .wp-block-table table { font-size:16px; line-height:1.65; }
body.wc-single-template-active .wc-post-content .wp-block-table th,
body.wc-single-template-active .wc-post-content .wp-block-table td { border-right-color:#edf2f6; padding:16px 18px; }
body.wc-single-template-active .wc-sidebar-card { box-shadow:0 6px 22px rgba(16,54,86,.045); }
@media(max-width:1180px) {
 body.wc-single-template-active .wc-post-layout { grid-template-columns:minmax(0,1fr); max-width:1000px; }
}
@media(max-width:600px) {
 body.wc-single-template-active .wc-post-article { padding:24px 20px 32px; }
 body.wc-single-template-active .wc-post-content { font-size:17px; line-height:1.82; }
 body.wc-single-template-active .wc-post-content h2::before { left:-10px; }
 body.wc-single-template-active .wc-post-content .wp-block-table table { font-size:14px; }
 body.wc-single-template-active .wc-post-content .wp-block-table th,
 body.wc-single-template-active .wc-post-content .wp-block-table td { padding:12px 13px; }
}

body.wc-single-template-active .wc-post-image-zoom { display:block; cursor:zoom-in; }
body.wc-single-template-active #wc-post-image-dialog { width:96vw; max-width:1960px; max-height:94vh; padding:16px; background:#f5f9fc; border:1px solid #afc6d8; border-radius:12px; }
body.wc-single-template-active #wc-post-image-dialog::backdrop { background:#061b2bd9; }
body.wc-single-template-active #wc-post-image-dialog .wc-post-image-scroll { overflow:auto; max-height:80vh; }
body.wc-single-template-active #wc-post-image-dialog img { display:block; max-width:none; height:auto; }
body.wc-single-template-active #wc-post-image-close { display:block; margin:0 0 12px auto; background:#09263e; color:white; border:0; border-radius:6px; padding:10px 16px; cursor:pointer; }
