.tcm-home {
  --bg: #f4f8f5;
  --text: #1c2f27;
  --muted: #5a7267;
  --primary: #1f6b52;
  --primary-2: #2f8c69;
  --primary-3: #46a77f;
  --line: #d5e7de;
  --card: #ffffff;
  --shadow: 0 14px 30px rgba(22, 67, 50, 0.14);

  color: var(--text);
  background: linear-gradient(180deg, #f8fcf9 0%, var(--bg) 100%);
}

.tcm-home * {
  box-sizing: border-box;
}

.tcm-home .container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.tcm-home .hero-full {
  position: relative;
  overflow: visible;
  background: linear-gradient(130deg, #e7f6ef 0%, #d8efe4 35%, #bfe6d4 100%);
  padding: 60px 0 90px;
}

.tcm-home .cloud {
  position: absolute;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.tcm-home .cloud::before,
.tcm-home .cloud::after {
  content: "";
  position: absolute;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.tcm-home .cloud-a {
  width: 140px;
  top: 88px;
  left: 8%;
}

.tcm-home .cloud-a::before {
  width: 80px;
  left: -34px;
}

.tcm-home .cloud-a::after {
  width: 66px;
  right: -24px;
}

.tcm-home .cloud-b {
  width: 180px;
  top: 120px;
  right: 10%;
}

.tcm-home .cloud-b::before {
  width: 74px;
  left: -26px;
}

.tcm-home .cloud-b::after {
  width: 86px;
  right: -34px;
}

.tcm-home .leaf {
  position: absolute;
  width: 260px;
  height: 260px;
  opacity: 0.1;
  pointer-events: none;
}

.tcm-home .leaf-left {
  left: 3%;
  top: 140px;
  background: conic-gradient(from 90deg, #2f8c69, #62c19a, #2f8c69);
  clip-path: polygon(50% 0%, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
}

.tcm-home .leaf-right {
  right: 2%;
  top: 170px;
  background: conic-gradient(from 180deg, #2f8c69, #62c19a, #2f8c69);
  clip-path: ellipse(42% 52% at 50% 50%);
}

.tcm-home .hero-content-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 34px;
}

.tcm-home .hero-main h2 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: #164734;
}

.tcm-home .hero-main h3 {
  margin: 12px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: #25634b;
  font-weight: 700;
}

.tcm-home .hero-main p {
  margin: 16px 0 0;
  color: #2f5f4d;
  line-height: 1.85;
  max-width: 620px;
}

.tcm-home .hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.tcm-home .btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.tcm-home .btn:hover {
  transform: translateY(-2px);
}

.tcm-home .btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #1f6b52, #359d74);
}

.tcm-home .btn-secondary {
  color: #1f6b52;
  background: #f3fcf8;
  border: 1px solid #73c3a3;
}

.tcm-home .hero-illustration {
  position: absolute;
  right: -100px;
  bottom: -220px;
  width: min(52vw, 720px);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 6;
  transform: scale(1);
}

.tcm-home .hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(29, 82, 61, 0.22));
  pointer-events: none;
}

.tcm-home .hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: radial-gradient(120% 120% at 50% -30%, rgba(255, 255, 255, 0.95) 54%, rgba(255, 255, 255, 0) 55%);
}

.tcm-home .symptom-strip {
  margin-top: -36px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 6;
}

.tcm-home .symptom-item {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d5e9df;
  box-shadow: 0 10px 20px rgba(24, 68, 52, 0.13);
  padding: 12px 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tcm-home .symptom-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.tcm-home .symptom-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(24, 68, 52, 0.18);
}

.tcm-home .symptom-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eaf7f2;
  color: #2a7b5c;
}

.tcm-home .symptom-svg img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(31%) sepia(39%) saturate(905%) hue-rotate(113deg) brightness(95%) contrast(89%);
}

.tcm-home .symptom-item span {
  font-weight: 700;
  color: #255440;
}

.tcm-home .symptom-strip .symptom-item:nth-child(n + 5) {
  display: none;
}

.tcm-home .section {
  padding: 54px 0;
}

.tcm-home .section-head h3 {
  margin: 0;
  font-size: 1.85rem;
}

.tcm-home .section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tcm-home .topic-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tcm-home .topic-card {
  background: #fff;
  border: 1px solid #d9eae1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(27, 70, 54, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.tcm-home .topic-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tcm-home .topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(27, 70, 54, 0.16);
}

.tcm-home .topic-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #d8efe4, #c3e8d8);
}

.tcm-home .topic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.tcm-home .topic-card:hover .topic-cover img {
  transform: scale(1.04);
}

.tcm-home .topic-card h4 {
  margin: 12px 14px 6px;
  position: relative;
  z-index: 1;
  color: #20523f;
}

.tcm-home .topic-card p {
  margin: 0 14px 14px;
  position: relative;
  z-index: 1;
  color: #5f766c;
  line-height: 1.68;
  font-size: 0.93rem;
}

.tcm-home .soft-bg {
  background: linear-gradient(180deg, #f1f8f4, #eaf5ef);
  border-top: 1px solid #d8e9e0;
  border-bottom: 1px solid #d8e9e0;
}

.tcm-home .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tcm-home .list-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d7e8df;
  padding: 18px;
}

.tcm-home .list-card h3 {
  margin: 0 0 12px;
  color: #1f533f;
}

.tcm-home .lib-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tcm-home .lib-item {
  border: 1px solid #e0eee7;
  border-radius: 10px;
  background: #fcfffd;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tcm-home .lib-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.tcm-home .lib-item:hover {
  transform: translateY(-3px);
  border-color: #c8e4d7;
}

.tcm-home .lib-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eaf7f2;
  font-size: 15px;
}

.tcm-home .lib-item strong {
  display: block;
  color: #255643;
  font-size: 0.92rem;
  line-height: 1.2;
}

.tcm-home .lib-item span {
  display: block;
  margin-top: 4px;
  color: #60796f;
  font-size: 0.82rem;
  line-height: 1.4;
}

.tcm-home .green-band {
  background: linear-gradient(130deg, #1d654e, #2f8c69 58%, #3ca47c);
}

.tcm-home .light h3,
.tcm-home .light p {
  color: #eff9f4;
}

.tcm-home .plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tcm-home .plan-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 18px;
}

.tcm-home .plan-card h4 {
  margin: 0;
  color: #1f5b45;
}

.tcm-home .plan-card p {
  margin: 10px 0 14px;
  color: #5e756b;
}

.tcm-home .plan-card a {
  color: #2f8c69;
  font-weight: 700;
  text-decoration: none;
}

.tcm-home .tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tcm-home .tool-item {
  background: #fff;
  border: 1px solid #d8e9e0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.tcm-home .tool-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(24, 68, 52, 0.16);
}

.tcm-home .tool-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(130deg, #2b825f, #49ad86);
  box-shadow: 0 8px 16px rgba(36, 105, 79, 0.3);
}

.tcm-home .tool-svg img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.tcm-home .tool-item strong {
  display: block;
  margin-bottom: 6px;
  color: #1e563f;
}

.tcm-home .tool-item span {
  color: #5d756b;
  font-size: 0.92rem;
}

/* Kadence header branding style on dark navigation background */
/* Align header content with hero container */
.page-template-page-tcm-landing #masthead .site-header-row-container-inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
  transform: translateX(-20px);
}

/* Logo (use light/white logo file for dark navbar) */
.page-template-page-tcm-landing .site-branding .custom-logo-link,
.page-template-page-tcm-landing .site-identity .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.page-template-page-tcm-landing .site-branding .custom-logo,
.page-template-page-tcm-landing .site-identity .custom-logo,
.page-template-page-tcm-landing .site-branding .custom-logo-link img,
.page-template-page-tcm-landing .site-identity .custom-logo-link img {
  max-height: 34px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Keep brand text horizontal */
.page-template-page-tcm-landing .site-branding,
.page-template-page-tcm-landing .site-identity,
.page-template-page-tcm-landing .site-branding a.brand,
.page-template-page-tcm-landing .site-identity a.brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  width: auto !important;
  height: auto !important;
}


/* Force site title to light color (Kadence variables + direct selectors) */
.page-template-page-tcm-landing .site-branding,
.page-template-page-tcm-landing .site-identity {
  --global-palette9: #eef9f3;
  --global-palette-highlight: #ffffff;
}

.page-template-page-tcm-landing .site-branding .site-title,
.page-template-page-tcm-landing .site-branding .site-title a,
.page-template-page-tcm-landing .site-branding .site-title a *,
.page-template-page-tcm-landing .site-identity .site-title,
.page-template-page-tcm-landing .site-identity .site-title a,
.page-template-page-tcm-landing .site-identity .site-title a *,
.page-template-page-tcm-landing .site-identity a.brand,
.page-template-page-tcm-landing .site-identity a.site-title {
  color: #eef9f3 !important;
  -webkit-text-fill-color: #eef9f3 !important;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 1px rgba(9, 39, 28, 0.35);
}

.page-template-page-tcm-landing .site-branding .site-title a:hover,
.page-template-page-tcm-landing .site-identity .site-title a:hover,
.page-template-page-tcm-landing .site-identity a.brand:hover,
.page-template-page-tcm-landing .site-identity a.site-title:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 1024px) {
  .tcm-home .hero-content-wrap,
  .tcm-home .two-col {
    grid-template-columns: 1fr;
  }

  .tcm-home .hero-illustration {
    right: -8px;
    bottom: -92px;
    width: min(60vw, 600px);
    justify-content: flex-end;
  }

  .tcm-home .hero-illustration img {
    width: 100%;
  }

  .tcm-home .symptom-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tcm-home .topic-grid,
  .tcm-home .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tcm-home .tool-grid,
  .tcm-home .lib-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tcm-home .hero-full {
    padding-bottom: 72px;
  }

  .tcm-home .hero-illustration {
    right: -12px;
    bottom: -74px;
    width: min(82vw, 460px);
  }

  .tcm-home .hero-illustration img {
    width: 100%;
  }

  .tcm-home .symptom-strip,
  .tcm-home .topic-grid,
  .tcm-home .plan-grid,
  .tcm-home .tool-grid,
  .tcm-home .lib-grid {
    grid-template-columns: 1fr;
  }
}
