/*
Theme Name: HealthNet Theme
Author: Local Development
Description: Block theme scaffold for the HealthNet WordPress rebuild.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.2
Version: 0.1.0
Text Domain: healthnet-theme
*/

.wp-site-blocks {
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
}

html :where(.wp-site-blocks) > * {
  margin-block-start: 0;
}

.header-pathway-btn--active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  filter: brightness(1.08);
}

.page-header--default {
  background: linear-gradient(135deg, #3f4754 0%, #5f6b7a 100%);
}

.learn-hub {
  padding: 64px 0 80px;
  background: var(--bg-soft);
}

.learn-hub-intro {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub, #556070);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.learn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

a.learn-card {
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

a.learn-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.learn-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.learn-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--text);
}

.learn-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub, #556070);
}

.learn-card-meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--blue);
  font-weight: 700;
}

.learn-card-links {
  margin: 0;
  padding-left: 1.1em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub, #556070);
}

.learn-card-links li + li {
  margin-top: 2px;
}

.healthnet-page-body {
  padding: 56px 0 80px;
  background: var(--bg-soft, #f6f8fb);
}

.healthnet-page-summary {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub, #556070);
}

.healthnet-child-nav {
  margin-bottom: 40px;
}

.healthnet-child-nav .category-heading {
  margin-bottom: 20px;
}

.healthnet-page-content {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(20, 35, 55, 0.08);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 14px 40px rgba(20, 35, 55, 0.06);
}

.healthnet-page-content > *:first-child {
  margin-top: 0;
}

.healthnet-page-content > *:last-child {
  margin-bottom: 0;
}

.healthnet-page-empty {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px dashed rgba(20, 35, 55, 0.18);
  border-radius: 24px;
  padding: 28px 32px;
  color: var(--text-sub, #556070);
}

@media (max-width: 767px) {
  .learn-hub {
    padding: 44px 0 56px;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }

  .healthnet-page-body {
    padding: 40px 0 56px;
  }

  .healthnet-page-content,
  .healthnet-page-empty {
    border-radius: 20px;
    padding: 24px 20px;
  }
}

/* ============================================
   Muscle Banking Landing
   ============================================ */
.page-header--muscle-banking {
  position: relative;
  color: #fff;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.page-header--muscle-banking > .container {
  width: 100%;
  z-index: 2;
  position: relative;
}

.page-header--muscle-banking .page-header-inner {
  position: relative;
  z-index: 2;
}

.page-header--muscle-banking .page-header-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-header--muscle-banking .page-header-image {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  overflow: hidden;
  clip-path: polygon(50px 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%);
}

.page-header--muscle-banking .page-header-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 62, 119, 0.55);
  z-index: 1;
}

.page-header--muscle-banking .page-header-image-item {
  flex: 1;
  margin-left: -50px;
  clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--muscle-banking .page-header-image-item:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--muscle-banking .page-header-image-item:last-child {
  clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--muscle-banking .page-header-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-header--learn {
  position: relative;
  color: #fff;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.page-header--learn > .container {
  width: 100%;
  z-index: 2;
  position: relative;
}

.page-header--learn .page-header-inner {
  position: relative;
  z-index: 2;
}

.page-header--learn .page-header-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-header--learn .page-header-image {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  overflow: hidden;
  clip-path: polygon(50px 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%);
}

.page-header--learn .page-header-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 62, 119, 0.55);
  z-index: 1;
}

.page-header--learn .page-header-image-item {
  flex: 1;
  margin-left: -50px;
  clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--learn .page-header-image-item:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--learn .page-header-image-item:last-child {
  clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--learn .page-header-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-header--publications {
  position: relative;
  color: #fff;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.page-header--publications > .container {
  width: 100%;
  z-index: 2;
  position: relative;
}

.page-header--publications .page-header-inner {
  position: relative;
  z-index: 2;
}

.page-header--publications .page-header-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-header--publications .page-header-image {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  overflow: hidden;
  clip-path: polygon(50px 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%);
}

.page-header--publications .page-header-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 62, 119, 0.55);
  z-index: 1;
}

.page-header--publications .page-header-image-item {
  flex: 1;
  margin-left: -50px;
  clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--publications .page-header-image-item:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--publications .page-header-image-item:last-child {
  clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--publications .page-header-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-header--health-library {
  position: relative;
  color: #fff;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.page-header--health-library > .container {
  width: 100%;
  z-index: 2;
  position: relative;
}

.page-header--health-library .page-header-inner {
  position: relative;
  z-index: 2;
}

.page-header--health-library .page-header-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-header--health-library .page-header-image {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  overflow: hidden;
  clip-path: polygon(50px 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%);
}

.page-header--health-library .page-header-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 62, 119, 0.55);
  z-index: 1;
}

.page-header--health-library .page-header-image-item {
  flex: 1;
  margin-left: -50px;
  clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--health-library .page-header-image-item:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--health-library .page-header-image-item:last-child {
  clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}

.page-header--health-library .page-header-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mb-section {
  padding: 40px 0;
  background: #fff;
}

.mb-section--alt {
  background: var(--bg-soft);
}

.mb-section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.mb-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.mb-section-icon svg {
  width: 64px;
  height: 64px;
}

.mb-section-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
}

.mb-section-desc {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  margin: 0 0 36px;
}

.link-card-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.mb-section--intro {
  padding: 48px 0;
  background: var(--blue-light);
}

.mb-intro-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.mb-intro-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  margin: 0;
}

.mb-intro-image {
  flex-shrink: 0;
  width: 200px;
}

.mb-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.mb-section-placeholder {
  font-size: 14px;
  color: var(--text-sub);
  padding: 24px 0;
}

@media (max-width: 767px) {
  .mb-intro-inner {
    flex-direction: column;
    gap: 28px;
  }

  .mb-intro-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .mb-section {
    padding: 48px 0;
  }

  .mb-section-title {
    font-size: 24px;
  }

  .mb-section-icon svg {
    width: 48px;
    height: 48px;
  }

  .link-card-grid--3col {
    grid-template-columns: 1fr;
  }
}
